@@ -34,17 +34,18 @@ To integrate a Firebase SDK with your app:
34
34
box that appears, make sure the target you want this framework to be added to
35
35
has a checkmark next to it, and that you've selected "Copy items if needed."
36
36
37
- > ⚠ Do not add the Firebase frameworks to the ** Embed Frameworks** Xcode build
38
- > phase. The Firebase frameworks are not embedded dynamic frameworks, but are
39
- > [ static frameworks] ( https://www.raywenderlich.com/65964/create-a-framework-for-ios )
40
- > which cannot be embedded into your application's bundle.
37
+ 7 . If using Xcode 15, embed each framework that was dragged in. Navigate to the
38
+ target's _ General_ settings and find _ Frameworks, Libraries, & Embedded
39
+ Content_ . For each framework dragged in from the ` Firebase.zip ` , select
40
+ ** Embed & Sign** . This step will enable privacy manifests to be picked up by
41
+ Xcode's tooling.
41
42
42
- 7 . If the SDK has resources, go into the Resources folders, which will be in
43
+ 8 . If the SDK has resources, go into the Resources folders, which will be in
43
44
the SDK folder. Drag all of those resources into the Project Navigator, just
44
45
like the frameworks, again making sure that the target you want to add these
45
46
resources to has a checkmark next to it, and that you've selected "Copy items
46
47
if needed".
47
- 8 . Add the ` -ObjC ` flag to ** Other Linker Settings** :
48
+ 9 . Add the ` -ObjC ` flag to ** Other Linker Settings** :
48
49
49
50
a. In your project settings, open the ** Settings** panel for your target.
50
51
@@ -53,21 +54,21 @@ To integrate a Firebase SDK with your app:
53
54
54
55
c. Double-click the setting, click the '+' button, and add ` -ObjC `
55
56
56
- 9 . Drag the ` Firebase.h ` header in this directory into your project. This will
57
+ 10 . Drag the ` Firebase.h ` header in this directory into your project. This will
57
58
allow you to ` #import "Firebase.h" ` and start using any Firebase SDK that you
58
59
have.
59
- 10 . Drag ` module.modulemap ` into your project and update the
60
+ 11 . Drag ` module.modulemap ` into your project and update the
60
61
"User Header Search Paths" in your project's Build Settings to include the
61
62
directory that contains the added module map.
62
- 11 . If your app does not include any Swift implementation, you may need to add
63
+ 12 . If your app does not include any Swift implementation, you may need to add
63
64
a dummy Swift file to the app to prevent Swift system library missing
64
65
symbol linker errors. See
65
66
https://forums.swift.org/t/using-binary-swift-sdks-from-non-swift-apps/55989 .
66
67
67
68
> ⚠ If prompted with the option to create a corresponding bridging header
68
69
> for the new Swift file, select ** Don't create** .
69
70
70
- 12 . You're done! Compile your target and start using Firebase.
71
+ 13 . You're done! Build your target and start using Firebase.
71
72
72
73
If you want to add another SDK, repeat the steps above with the xcframeworks for
73
74
the new SDK. You only need to add each framework once, so if you've already
0 commit comments