@@ -67,21 +67,34 @@ To integrate a Firebase SDK with your app:
67
67
68
68
c. Double-click the setting, click the '+' button, and add ` -lc++ `
69
69
70
- 10 . Drag the ` Firebase.h ` header in this directory into your project. This will
70
+ 10 . If you're using Firebase Analytics, disable
71
+ GoogleAdsOnDeviceConversion.xcframework for Mac Catalyst:
72
+
73
+ a. In your project settings, open the ** Settings** panel for your target.
74
+
75
+ b. Go to the Build Phases tab and find the
76
+ ** GoogleAdsOnDeviceConversion.xcframework** setting in the ** Link Binary
77
+ With Libraries** section.
78
+
79
+ c. Click on the filter icon button in the
80
+ ** GoogleAdsOnDeviceConversion.xcframework** row and deselect the Mac Catalyst
81
+ checkbox.
82
+
83
+ 11 . Drag the ` Firebase.h ` header in this directory into your project. This will
71
84
allow you to ` #import "Firebase.h" ` and start using any Firebase SDK that you
72
85
have.
73
- 11 . Drag ` module.modulemap ` into your project and update the
86
+ 12 . Drag ` module.modulemap ` into your project and update the
74
87
"User Header Search Paths" in your project's Build Settings to include the
75
88
directory that contains the added module map.
76
- 12 . If your app does not include any Swift implementation, you may need to add
89
+ 13 . If your app does not include any Swift implementation, you may need to add
77
90
a dummy Swift file to the app to prevent Swift system library missing
78
91
symbol linker errors. See
79
92
https://forums.swift.org/t/using-binary-swift-sdks-from-non-swift-apps/55989 .
80
93
81
94
> ⚠ If prompted with the option to create a corresponding bridging header
82
95
> for the new Swift file, select ** Don't create** .
83
96
84
- 13 . You're done! Build your target and start using Firebase.
97
+ 14 . You're done! Build your target and start using Firebase.
85
98
86
99
If you want to add another SDK, repeat the steps above with the xcframeworks for
87
100
the new SDK. You only need to add each framework once, so if you've already
0 commit comments