You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cdf99cd
Browse filesBrowse the repository at this point in the historyBrowse files
[react-native-firebase] SPM + static linkage is not supported (target(s): #{target_names}).
625
+
[react-native-firebase] SPM + static linkage is not supported.
611
626
612
-
firebase-ios-sdk's Swift Package products are automatic libraries (not `type: .dynamic`), so each react-native-firebase pod that resolves Firebase via SPM embeds its own copy. With `use_frameworks! :linkage => :static` those copies collide at link time as duplicate-symbol errors.
627
+
Detected static pod linkage:
628
+
#{detected.join("\n")}
629
+
630
+
firebase-ios-sdk's Swift Package products are automatic libraries (not `type: .dynamic`), so each react-native-firebase pod that resolves Firebase via SPM embeds its own copy. With static pod linkage those copies collide at link time as duplicate-symbol errors.
613
631
614
632
Fix your Podfile to use dynamic linkage, then run `pod install` again:
615
633
616
634
use_frameworks! :linkage => :dynamic
617
635
618
-
CocoaPods Firebase is no longer available with Firebase Apple SDK 13+. See https://rnfirebase.io/ios-spm
636
+
With the stock template Podfile you can instead run `USE_FRAMEWORKS=dynamic pod install`, but it must be set for every `pod install` (including CI) or linkage reverts to static; the Podfile line above is the durable fix.
637
+
Expo: set `ios.useFrameworks` to `"dynamic"` in the `expo-build-properties` plugin config, then re-run `npx expo prebuild`. Only if you maintain `ios/` by hand (no prebuild), set `"ios.useFrameworks": "dynamic"` in `ios/Podfile.properties.json`.
0 commit comments