target 'myapp' do
pod 'Firebase/Core'
#the other projects not related with Firebase
use_frameworks!
end
51968 duplicated symbols for architechture x86_64
The problem was about -ObjC
flag. CocoaPods added this flag into Other linker flags
project automatically.
But this this flag my other custom projects did not build properly. In order to fix this I did these steps.
FirebaseAnalytics.framework
, FirebaseCore.framework
, FirebaseInstanceID.framework
, GoogleInterchangeUtilities.framework
, GoogleSymbolUtilities.framework
, GoogleToolboxForMac.framework
and for admob: GoogleMobileAds.framework
-ObjC
flat that force use all libraries I've changed Other linker flag
using -force_load
. That is, -force_load GoogleMobileAds.framework/GoogleMobileAds -force_load FirebaseAnalytics.framework/FirebaseAnalytics -force_load FirebaseCore.framework/FirebaseCore -force_load GoogleToolboxForMac.framework/GoogleToolboxForMac -force_load GoogleSymbolUtilities.framework/GoogleSymbolUtilities -force_load GoogleInterchangeUtilities.framework/GoogleInterchangeUtilities -force_load FirebaseInstanceID.framework/FirebaseInstanceID
Do not forget to create and download GoogleService-Info.plist file inside console: https://console.firebase.google.com
** EDIT **
Version 3.12 rejects -force_load GoogleSymbolUtilities.framework/GoogleSymbolUtilities
So , now correct solution is:
-force_load GoogleMobileAds.framework/GoogleMobileAds -force_load FirebaseAnalytics.framework/FirebaseAnalytics -force_load FirebaseCore.framework/FirebaseCore -force_load GoogleToolboxForMac.framework/GoogleToolboxForMac -force_load GoogleInterchangeUtilities.framework/GoogleInterchangeUtilities -force_load FirebaseInstanceID.framework/FirebaseInstanceID