Linker Error in iOS (duplicate symbols for architecture x86_64)

前端 未结 5 676
闹比i
闹比i 2020-11-30 06:10

I keep on getting the following error:

duplicate symbol _llvm.embedded.module in:
/Users/name/Documents/FacebookSDKs-iOS-20150910/FBSDKCoreKit.framework/FBSD         


        
相关标签:
5条回答
  • 2020-11-30 06:19
    1. If you use FacebookSDKs-iOS-20160115.zip and your XCODE VersionXCODE 6.4 or lower version of XCODE then this type of issue create.
    2. FacebookSDKs-iOS-20160115.zip this is use for XCODE 7.
    3. You can use https://developers.facebook.com/resources/FacebookSDKs-iOS-20150813.zip.
    4. Its work fine for you.
    0 讨论(0)
  • 2020-11-30 06:24

    If not mistaken, you are using the sdk which just released by Facebook at September 10th, 2015 which named as FacebookSDKs-iOS-20150910.zip. Try to use sdk that released at August 13th, 2015 which named as FacebookSDKs-iOS-20150813.zip and report to Facebook about the duplication problem if you can. Thank you.

    0 讨论(0)
  • 2020-11-30 06:29

    When I had a duplicate symbols error, I opened my project.xcodeproj XML file in a text editor and searched the duplicate symbol. You'll most likely find that FacebookSDK shows up in multiple lines with the same "id" property. Make sure you have a back up of your current project, and try deleting the duplicates (ones that have the same id) manually in this file. Save the file, compile, and see if the project runs.

    You might want to try just deleting one duplicate line, and seeing if the number of duplicates (apparently you have 102!!) goes down first.

    0 讨论(0)
  • 2020-11-30 06:30

    This thread explains you must compile the Facebook 4.6.0 SDK in Xcode 7 to resolve the issue. After compiling in Xcode 7 it worked for me.

    In the Facebook iOS SDK 4.6.0, App Thinning (Bitcode) support has been added and therefore it cannot be complied in Xcode versions lower than Xcode 7.0.

    0 讨论(0)
  • 2020-11-30 06:39

    I faced the same issue of duplicate symbols. I was using Xcode 6.4 but later when I upgraded to Xcode 7.0 It Worked fine for me. I would suggest to Upgrade your Xcode to 7.0 if you are using earlier one.

    0 讨论(0)
提交回复
热议问题