I am running Xcode 6.3 and I'm using card.io's iOS SDK 5.2.0.
Here's the error:
duplicate symbol _llvm.cmdline in:
/Users/comcubatormica/Downloads/card.io-iOS-SDK-master/CardIO/libCardIO.a(CardIOTableViewCell.o)
/Users/comcubatormica/Downloads/card.io-iOS-SDK-master/CardIO/libCardIO.a(CardIOPostalCodeTextFieldDelegate.o)
duplicate symbol _llvm.embedded.module in:
/Users/comcubatormica/Downloads/card.io-iOS-SDK-master/CardIO/libCardIO.a(CardIOTableViewCell.o)
/Users/comcubatormica/Downloads/card.io-iOS-SDK-master/CardIO/libCardIO.a(CardIOPostalCodeTextFieldDelegate.o)
duplicate symbol _llvm.cmdline in:
/Users/comcubatormica/Downloads/card.io-iOS-SDK-master/CardIO/libCardIO.a(CardIOTableViewCell.o)
/Users/comcubatormica/Downloads/card.io-iOS-SDK-master/CardIO/libCardIO.a(CardIOConfig.o)
duplicate symbol _llvm.embedded.module in:
/Users/comcubatormica/Downloads/card.io-iOS-SDK-master/CardIO/libCardIO.a(CardIOTableViewCell.o)
/Users/comcubatormica/Downloads/card.io-iOS-SDK-master/CardIO/libCardIO.a(CardIOConfig.o)
duplicate symbol _llvm.cmdline in:
/Users/comcubatormica/Downloads/card.io-iOS-SDK-master/CardIO/libCardIO.a(CardIOTableViewCell.o)
/Users/comcubatormica/Downloads/card.io-iOS-SDK-master/CardIO/libCardIO.a(CardIOView.o)
duplicate symbol _llvm.embedded.module in:
/Users/comcubatormica/Downloads/card.io-iOS-SDK-master/CardIO/libCardIO.a(CardIOTableViewCell.o)
/Users/comcubatormica/Downloads/card.io-iOS-SDK-master/CardIO/libCardIO.a(CardIOView.o)
ld: 64 duplicate symbols for architecture x86_64 clang: error: linker
command failed with exit code 1 (use -v to see invocation)
How can I solve this?
You should update Xcode to the latest version, Xcode 7. As stated in card.io's changelog for version 5.2.0:
The library is now built with Xcode 7.0. It has Bitcode enabled which
does significantly increase the static library. However, when an app
is compiled and distributed by the App Store, the app size should not
significantly increase compared to before Bitcode enablement. You must
also use Xcode 7 since previous versions of Xcode are not fully
compatible with Bitcode enabled libraries.
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 am a noob in Xcode at this moment, I try to run one poject with Emulator but I receive this error:
duplicate symbol _llvm.cmdline in:
/Users/dpulgarin/Projects/runator-ios/Runator/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
/Users/dpulgarin/Projects/runator-ios/Runator/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKServerConfiguration.o)
duplicate symbol _llvm.embedded.module in:
/Users/dpulgarin/Projects/runator-ios/Runator/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
/Users/dpulgarin/Projects/runator-ios/Runator/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKServerConfiguration.o)
duplicate symbol _llvm.cmdline in:
/Users/dpulgarin/Projects/runator-ios/Runator/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
/Users/dpulgarin/Projects/runator-ios/Runator/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKMaleSilhouetteIcon.o)
duplicate symbol _llvm.embedded.module in:
/Users/dpulgarin/Projects/runator-ios/Runator/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
/Users/dpulgarin/Projects/runator-ios/Runator/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKMaleSilhouetteIcon.o)
ld: 184 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have no idea what might happen, I would like help to solve it.
Thanks in advance.
Its an issue with the latest Facebook SDK (Sept 10th 2015). Download the release before it.
See this answer https://stackoverflow.com/a/32519847/1052084 which worked for me.
I had been developing a an iPad iOS app using the simulator until recently when I got my hands on an iPad with iOS 8.
I had been adding a couple of frameworks and going on just fine and the project has always built and run fine for the simulator (and it still does).
However, building for the device fails with an error about duplicate symbols (220 of them!) for the Firebase (2.5.0) Target in the Pods Project. I tried all the basics of cleaning the project, making sure Obj-C related flags were in place, but nothing.
I decided to see if somehow during work some configuration got broken so I tested on a fresh project, with Firebase as the only Pod and with nothing else done but setting up the workspace with 'pod install' and I get the exact same error.
All the duplicate symbols seem to be regarding the same file (libFirebaseStatic.a) and very many o-files.
This is the error, but I have chopped off a large middle part of the error for obvious reasons:
duplicate symbol _llvm.cmdline in:
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FPendingPut.o)
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FBase64Utilities.o)
duplicate symbol _llvm.embedded.module in:
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FPendingPut.o)
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FBase64Utilities.o)
duplicate symbol _llvm.cmdline in:
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FPendingPut.o)
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FLevelDBStorageEngine.o)
.
.
.
duplicate symbol _llvm.embedded.module in:
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FPendingPut.o)
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FTransformedEnumerator.o)
duplicate symbol _llvm.cmdline in:
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FPendingPut.o)
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FClock.o)
duplicate symbol _llvm.embedded.module in:
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FPendingPut.o)
/Users/RCR/Documents/DEV/IOS/Business/BLBusiness/Pods/Firebase/libFirebaseStatic.a(FClock.o)
ld: 220 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Don't ask me why or how, but updating Xcode (to 7.2) solved this issue. I did not pay attention to what was my previous version before updating but it had to be 7.1 or 7.1.1.
In any case, the issue is gone. I assume that the Firebase library had compiling requirements only met by the latest update to Xcode.
I am trying to integrate the new GoogleMaps sdk 1.10.1 and I followed the quick start from https://developers.google.com/maps/documentation/ios/start
But I am getting the following error and i got stuck with duplicate symbol error.
GoogleMaps(ResourceContext.o)
duplicate symbol __ZN7gmscore8renderer14DepthMaskStateC1Eb in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(DepthMaskState.o)
duplicate symbol __ZN7gmscore8renderer14DepthMaskStateC2Eb in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(DepthMaskState.o)
duplicate symbol __ZN7gmscore8renderer14DepthMaskStateD0Ev in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(DepthMaskState.o)
duplicate symbol __ZN7gmscore8renderer14DepthMaskStateD1Ev in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(DepthMaskState.o)
duplicate symbol __ZN7gmscore8renderer14DepthMaskStateD2Ev in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(DepthMaskState.o)
duplicate symbol __ZNK7gmscore8renderer14DepthMaskState11StringValueEv in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(DepthMaskState.o)
duplicate symbol __ZNK7gmscore8renderer14DepthMaskState7PreDrawEPNS0_14EntityRendererERKNS_4base10reffed_ptrINS0_11EntityStateEEE in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(DepthMaskState.o)
duplicate symbol __ZNK7gmscore8renderer14DepthMaskState8PostDrawEPNS0_14EntityRendererERKNS_4base10reffed_ptrINS0_11EntityStateEEE in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(DepthMaskState.o)
duplicate symbol __ZTVN7gmscore8renderer14DepthMaskStateE in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(DepthMaskState.o)
duplicate symbol __ZN7gmscore8renderer15GLScopedContextC1EP15GMSIOSGLContext in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(GLScopedContext.o)
duplicate symbol __ZN7gmscore8renderer15GLScopedContextC2EP15GMSIOSGLContext in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(GLScopedContext.o)
duplicate symbol __ZN7gmscore8renderer15GLScopedContextD1Ev in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(GLScopedContext.o)
duplicate symbol __ZN7gmscore8renderer15GLScopedContextD2Ev in:
/Users/klouddata/Documents/SVN_RIL/RTSS_iOS_B200/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/GoogleMaps(GLScopedContext.o)
ld: 706 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I had the same problem and I have fixed it by removing -all_load from Other Linker Flags and I let CocoaPods to set my flags.
Check your project settings for this flag.
I've noticed same problem with Xcode 6.2. No problem at all with Xcode 6.3.2
Workaround would be to use
pod 'GoogleMaps', '1.9.2'
which working fine for me (with Xcode 6.2)
check your Other Linker Flags probably you have $(inherited) with other flag to GoogleMaps -framework "GoogleMaps". I recommend set just $(inherited)
I had similar problem where there some other entries along with -ObjC in Other Linker Flags. Removing all other values except -ObjC solved my problem.
Updating XCode to the latest version and using $(inherited) as Other Linker Flags option solved this problem for me.
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.