Linker error on iOS (duplicate characters for x86_64 architecture)

I keep getting the following error:

duplicate symbol _llvm.embedded.module in: /Users/name/Documents/FacebookSDKs-iOS-20150910/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKApplicationDelegate.o) /Users/name/Documents/FacebookSDKs-iOS-20150910/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKServerConfiguration.o) ld: 102 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

I tried to uninstall FBSDK and reinstall, but this does not work. I also suspect that the problem that I am connecting the structure to Swift may be the problem. My bridge header contains the following:

 #ifndef EggCrush_Bridge_h #define EggCrush_Bridge_h #import <FBSDKCoreKit/FBSDKCoreKit.h> #endif 

My AppDelegate.swift file imports FBSDKCoreKit.
There are no other linker flags.
I run Xcode 6.3.2 and create a project for iOS 8.3

How to clear this error?

+20
ios facebook xcode swift linker-errors
Sep 11 '15 at 3:24
source share
5 answers

If you are mistaken, you are using sdk, which Facebook just released on September 10, 2015, which is called FacebookSDKs-iOS-20150910.zip . Try using the sdk that was released on August 13, 2015 called FacebookSDKs-iOS-20150813.zip and let Facebook know about the duplication problem if you can. Thank.

+50
Sep 11 '15 at 9:15
source share

This thread explains that you must compile the Facebook 4.6.0 SDK in Xcode 7 to solve the problem. After compiling in Xcode 7, this worked for me.

Support for the Thinning (Bitcode) application has been added to Facebook iOS SDK 4.6.0, and therefore it cannot be executed in versions of Xcode below Xcode 7.0.

+25
Sep 15 '15 at 14:52
source share

When I had an error with duplicate characters, I opened the project.xcodeproj XML file in a text editor and looked for a duplicate character. You will most likely find that the FacebookSDK is displayed on multiple lines with the same id property. Make sure you have a backup of your current project, and try to delete duplicates (those that have the same identifier) ​​manually in this file. Save the file, compile and see if the project is running.

You can try simply deleting one repeating row and see if the number of duplicates is reduced (apparently you have 102!).

+2
Sep 11 '15 at 5:40
source share
+2
Jan 25 '16 at 10:53 on
source share

I ran into the same problem of duplicate characters. I used Xcode 6.4 , but later when I upgraded to Xcode 7.0 , it worked fine for me. I would suggest upgrading your Xcode to 7.0 if you are using an earlier one.

0
Oct 30 '15 at 7:38
source share



All Articles