@@ -24,37 +24,32 @@ Xcode 15.2 or newer is required.
24
24
To integrate a Firebase SDK with your app:
25
25
26
26
1 . Find the desired SDK from the list within ` METADATA.md ` .
27
- 2 . Make sure you have an Xcode project open in Xcode.
28
- 3 . In Xcode, hit ` ⌘-1 ` to open the Project Navigator pane. It will open on
27
+ 1 . Make sure you have an Xcode project open in Xcode.
28
+ 1 . In Xcode, hit ` ⌘-1 ` to open the Project Navigator pane. It will open on
29
29
left side of the Xcode window if it wasn't already open.
30
- 4 . Remove any existing Firebase xcframeworks from your project.
31
- 5 . Drag each xcframework from the "FirebaseAnalytics" directory into the Project
30
+ 1 . Remove any existing Firebase xcframeworks from your project.
31
+ 1 . Drag each xcframework from the "FirebaseAnalytics" directory into the Project
32
32
Navigator pane. In the dialog box that appears, make sure the target you
33
33
want the framework to be added to has a checkmark next to it, and that
34
34
you've selected "Copy items if needed".
35
35
36
36
> ⚠ To disable AdId support, do not copy
37
37
> ` GoogleAppMeasurementIdentitySupport.xcframework ` .
38
38
39
- 6 . Drag each framework from the directory named after the SDK into the Project
39
+ 1 . Drag each framework from the directory named after the SDK into the Project
40
40
Navigator pane. Note that there may be no additional frameworks, in which
41
41
case this directory will be empty. For instance, if you want the Database
42
42
SDK, look in the Database folder for the required frameworks. In the dialog
43
43
box that appears, make sure the target you want this framework to be added to
44
44
has a checkmark next to it, and that you've selected "Copy items if needed."
45
45
46
- 7 . If using Xcode 15, embed each framework that was dragged in. Navigate to the
46
+ 1 . If using Xcode 15, embed each framework that was dragged in. Navigate to the
47
47
target's _ General_ settings and find _ Frameworks, Libraries, & Embedded
48
48
Content_ . For each framework dragged in from the ` Firebase.zip ` , select
49
49
** Embed & Sign** . This step will enable privacy manifests to be picked up by
50
50
Xcode's tooling.
51
51
52
- 8 . If the SDK has resources, go into the Resources folders, which will be in
53
- the SDK folder. Drag all of those resources into the Project Navigator, just
54
- like the frameworks, again making sure that the target you want to add these
55
- resources to has a checkmark next to it, and that you've selected "Copy items
56
- if needed".
57
- 9 . Add the ` -ObjC ` flag to ** Other Linker Settings** :
52
+ 1 . Add the ` -ObjC ` flag to ** Other Linker Settings** :
58
53
59
54
a. In your project settings, open the ** Settings** panel for your target.
60
55
@@ -63,7 +58,7 @@ To integrate a Firebase SDK with your app:
63
58
64
59
c. Double-click the setting, click the '+' button, and add ` -ObjC `
65
60
66
- 10 . Add the ` -lc++ ` flag to ** Other Linker Settings** :
61
+ 1 . Add the ` -lc++ ` flag to ** Other Linker Settings** :
67
62
68
63
a. In your project settings, open the ** Settings** panel for your target.
69
64
@@ -72,21 +67,21 @@ To integrate a Firebase SDK with your app:
72
67
73
68
c. Double-click the setting, click the '+' button, and add ` -lc++ `
74
69
75
- 11 . Drag the ` Firebase.h ` header in this directory into your project. This will
70
+ 1 . Drag the ` Firebase.h ` header in this directory into your project. This will
76
71
allow you to ` #import "Firebase.h" ` and start using any Firebase SDK that you
77
72
have.
78
- 12 . Drag ` module.modulemap ` into your project and update the
73
+ 1 . Drag ` module.modulemap ` into your project and update the
79
74
"User Header Search Paths" in your project's Build Settings to include the
80
75
directory that contains the added module map.
81
- 13 . If your app does not include any Swift implementation, you may need to add
76
+ 1 . If your app does not include any Swift implementation, you may need to add
82
77
a dummy Swift file to the app to prevent Swift system library missing
83
78
symbol linker errors. See
84
79
https://forums.swift.org/t/using-binary-swift-sdks-from-non-swift-apps/55989 .
85
80
86
81
> ⚠ If prompted with the option to create a corresponding bridging header
87
82
> for the new Swift file, select ** Don't create** .
88
83
89
- 14 . You're done! Build your target and start using Firebase.
84
+ 1 . You're done! Build your target and start using Firebase.
90
85
91
86
If you want to add another SDK, repeat the steps above with the xcframeworks for
92
87
the new SDK. You only need to add each framework once, so if you've already
0 commit comments