@@ -54,21 +54,30 @@ To integrate a Firebase SDK with your app:
54
54
55
55
c. Double-click the setting, click the '+' button, and add ` -ObjC `
56
56
57
- 10 . Drag the ` Firebase.h ` header in this directory into your project. This will
57
+ 10 . Add the ` -lc++ ` flag to ** Other Linker Settings** :
58
+
59
+ a. In your project settings, open the ** Settings** panel for your target.
60
+
61
+ b. Go to the Build Settings tab and find the ** Other Linker Flags** setting
62
+ in the ** Linking** section.
63
+
64
+ c. Double-click the setting, click the '+' button, and add ` -lc++ `
65
+
66
+ 11 . Drag the ` Firebase.h ` header in this directory into your project. This will
58
67
allow you to ` #import "Firebase.h" ` and start using any Firebase SDK that you
59
68
have.
60
- 11 . Drag ` module.modulemap ` into your project and update the
69
+ 12 . Drag ` module.modulemap ` into your project and update the
61
70
"User Header Search Paths" in your project's Build Settings to include the
62
71
directory that contains the added module map.
63
- 12 . If your app does not include any Swift implementation, you may need to add
72
+ 13 . If your app does not include any Swift implementation, you may need to add
64
73
a dummy Swift file to the app to prevent Swift system library missing
65
74
symbol linker errors. See
66
75
https://forums.swift.org/t/using-binary-swift-sdks-from-non-swift-apps/55989 .
67
76
68
77
> ⚠ If prompted with the option to create a corresponding bridging header
69
78
> for the new Swift file, select ** Don't create** .
70
79
71
- 13 . You're done! Build your target and start using Firebase.
80
+ 14 . You're done! Build your target and start using Firebase.
72
81
73
82
If you want to add another SDK, repeat the steps above with the xcframeworks for
74
83
the new SDK. You only need to add each framework once, so if you've already
0 commit comments