I added 2 third party framwekors but When I try to deploy I got this error
ld: 2 duplicate symbols for architecture arm64
duplicate symbol 'OBJC_CLASS$_Terminal' in:
/SDKThirdParty_1.a(Terminal.o)
/SDKThirdParty_2(Terminal.o)
duplicate symbol 'OBJC_METACLASS$_Terminal' in:
/SDKThirdParty_1(Terminal.o)
/SDKThirdParty_2(Terminal.o)
I try set "NO" in No CommonBlock also I search that file (Terminal.o) in compile sources but those files don't appear
Any ideas ?
Related
I built a mobile application with flutter framework and every time I run the application on ios devise this error appears and
Warning: The Copy Bundle Resources build phase contains this target's Info.plist file
'Runner/Info.plist'.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
duplicate symbol _kFIRInstanceIDDomain in:
/Users/tabarekaljaaf/Desktop/amafe/AMAFE/build/ios/Debug-iphonesimulator/FirebaseInstanceI
D/libFirebaseInstanceID.a(NSError+FIRInstanceID 2.o)
/Users/tabarekaljaaf/Desktop/amafe/AMAFE/build/ios/Debug-iphonesimulator/FirebaseInstanceI
D/libFirebaseInstanceID.a(NSError+FIRInstanceID.o)
duplicate symbol _kFIRMessagingDomain in:
/Users/tabarekaljaaf/Desktop/amafe/AMAFE/build/ios/Debug-iphonesimulator/FirebaseMessaging
/libFirebaseMessaging.a(NSError+FIRMessaging 2.o)
/Users/tabarekaljaaf/Desktop/amafe/AMAFE/build/ios/Debug-iphonesimulator/FirebaseMessaging
/libFirebaseMessaging.a(NSError+FIRMessaging.o)
duplicate symbol _GULNSDataZlibRemainingBytesKey in:
/Users/tabarekaljaaf/Desktop/amafe/AMAFE/build/ios/Debug-iphonesimulator/GoogleUtilities/l
ibGoogleUtilities.a(GULNSData+zlib 2.o)
/Users/tabarekaljaaf/Desktop/amafe/AMAFE/build/ios/Debug-iphonesimulator/GoogleUtilities/l
ibGoogleUtilities.a(GULNSData+zlib.o)
duplicate symbol _GULNSDataZlibErrorKey in:
/Users/tabarekaljaaf/Desktop/amafe/AMAFE/build/ios/Debug-iphonesimulator/GoogleUtilities/l
ibGoogleUtilities.a(GULNSData+zlib 2.o)
/Users/tabarekaljaaf/Desktop/amafe/AMAFE/build/ios/Debug-iphonesimulator/GoogleUtilities/l
ibGoogleUtilities.a(GULNSData+zlib.o)
duplicate symbol _GULNSDataZlibErrorDomain in:
/Users/tabarekaljaaf/Desktop/amafe/AMAFE/build/ios/Debug-iphonesimulator/GoogleUtilities/l
ibGoogleUtilities.a(GULNSData+zlib 2.o)
/Users/tabarekaljaaf/Desktop/amafe/AMAFE/build/ios/Debug-iphonesimulator/GoogleUtilities/l
ibGoogleUtilities.a(GULNSData+zlib.o)
ld: 5 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could not build the application for the simulator. Error launching application on iPhone XR.
I don't have a background coding with Xcode how can I solve this
I have implement Appodeal framework, but after that i cant build my project because it gives following error.
duplicate symbol _OBJC_IVAR_$_MoPub._globalMediationSettings in:
/Users/ci-13/Library/Developer/Xcode/DerivedData/myproject-ewtecqfvsvbwpmbxhdskxxrchrda/Build/Intermediates/myproject.build/Debug-iphonesimulator/myproject.build/Objects-normal/x86_64/MoPub.o
/Volumes/Projects/myproject/Appodeal.framework/Appodeal(MoPub.o)
duplicate symbol _OBJC_CLASS_$_MoPub in:
/Users/ci-13/Library/Developer/Xcode/DerivedData/myproject-ewtecqfvsvbwpmbxhdskxxrchrda/Build/Intermediates/myproject.build/Debug-iphonesimulator/myproject.build/Objects-normal/x86_64/MoPub.o
/Volumes/Projects/myproject/Appodeal.framework/Appodeal(MoPub.o)
When project is working fine when I try to run in simulator. However, when I try to archive the project, I got the follow error. The code is too long. I just putting some part of it.
duplicate symbol l017 in:
GoogleMobileAds.framework/GoogleMobileAds(GADBannerAdViewDelegate.o)
GoogleMobileAds(GADRewardBasedVideoAd+Mediation.o)
duplicate symbol l018 in:
GoogleMobileAds.framework/GoogleMobileAds(GADCSITimeRecorder.o)
GoogleMobileAds.framework/GoogleMobileAds(GADRewardBasedVideoAd+Mediation.o)
duplicate symbol l008 in:
GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttributionView.o)
GoogleMobileAds.framework/GoogleMobileAds(GADPushTransitionView.o)
duplicate symbol l014 in:
GoogleMobileAds.framework/GoogleMobileAds(GADPinger.o)
GoogleMobileAds.framework/GoogleMobileAds(GADAdAppViewController.o)
ld: 28 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How to solve this?
Problem solved by removing the "-ObjC" linker flag.
duplicate symbol _BFMeasurementEventArgsKey in:
/Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
/Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
duplicate symbol _BFAppLinkParseEventName in:
/Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
/Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
duplicate symbol _BFAppLinkNavigateInEventName in:
/Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
/Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
duplicate symbol _BFAppLinkNavigateOutEventName in:
/Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
/Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
duplicate symbol _BFAppLinkNavigateBackToReferrerEventName in:
/Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
/Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
duplicate symbol _OBJC_CLASS_$_BFMeasurementEvent in:
/Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
/Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
duplicate symbol _OBJC_METACLASS_$_BFMeasurementEvent in:
/Users/BaselFarag/Library/Developer/Xcode/DerivedData/TokenApp-dqdwcnpmpvwcdadwwxpinxtlvuoa/Build/Products/Debug-iphonesimulator/libPods-TokenApp-Bolts.a(BFMeasurementEvent.o)
/Users/BaselFarag/Desktop/src/tokenapp/Bolts.framework/Bolts(BFMeasurementEvent.o)
ld: 91 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
So I understand that there are duplicates in my files and that's why I'm receiving this error (at least that what I think it the problem according to the ld). What I don't know how to do is reconcile the multiple files. I tried just removing Bolt entirely but that just made Xcode angry. REAL angry. Any help on how to solve this one? I'm pretty sure this is an easy one but I'm a noob.
Answer for future consultation:
What solved my issue in the end was starting from scratch and installing my dependencies via Cocoapods. It appears if you try to add a framework via a drag and drop and then later user= Cocoapods the previous framework will not be noticed by Cocoapods and Cocoapods will attempt to install that very same framework again.
So when using dependencies either only use drag and drop or only use Cocoapods from the get go. Do not try to mix and match.
I'm trying to add the facebook SDK 3.2 to my app but after I add the -ObjC linker flag (as described in their video) I get a lot of duplicates warnings and I can't run the app with the error:
duplicate symbol _OBJC_IVAR_$_GAI.defaultTracker_ in:
/Users/gool/proj/Frameworks/GANT/libGoogleAnalytics.a(GAI.o)
/Users/gool/proj/Frameworks/GANT/libGoogleAnalytics_debug.a(GAI.o)
duplicate symbol _OBJC_IVAR_$_GAI.dispatcher_ in:
/Users/gool/proj/Frameworks/GANT/libGoogleAnalytics.a(GAI.o)
/Users/gool/proj/Frameworks/GANT/libGoogleAnalytics_debug.a(GAI.o)
duplicate symbol _kGAIProduct in:
/Users/gool/proj/Frameworks/GANT/libGoogleAnalytics.a(GAI.o)
/Users/gool/proj/Frameworks/GANT/libGoogleAnalytics_debug.a(GAI.o)
duplicate symbol _kGAIVersion in:
/Users/gool/proj/Frameworks/GANT/libGoogleAnalytics.a(GAI.o)
/Users/gool/proj/Frameworks/GANT/libGoogleAnalytics_debug.a(GAI.o)
duplicate symbol _OBJC_IVAR_$_GAI.trackUncaughtExceptions_ in:
/Users/gool/proj/Frameworks/GANT/libGoogleAnalytics.a(GAI.o)
/Users/gool/proj/Frameworks/GANT/libGoogleAnalytics_debug.a(GAI.o)
/Users/gool/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(Facebook.o)
ld: 172 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks
Deleting libGoogleAnalytics_debug.a and the facebook old sdk solved my problem