Duplicate Symbols for Architecture arm64

123,263

Solution 1

From the errors, it would appear that the FacebookSDK.framework already includes the Bolts.framework classes. Try removing the additional Bolts.framework from the project.

Solution 2

For me it helped to switch the "No Common Blocks" compiler setting to NO: It pretty much seems to make sense, the setting is explained here: What is GCC_NO_COMMON_BLOCKS used for?

Solution 3

Using Xcode 8, "Update project to recommended settings" option turned ON 'No Common Blocks' for my project.

Turning it back to OFF fixed everything up.

Solution 4

I've messed up my pods while downgrading a pod and I've managed to resolve the issue with duplicate symbols for architecture arm64 by removing the pods and installing them again with:

pod deintegrate
pod install

Solution 5

For me it was that i imported a file as a .m not a .h by mistake

Share:
123,263
Admin
Author by

Admin

Updated on February 05, 2022

Comments

  • Admin
    Admin over 2 years

    When I try running my Xcode Project it fails with an error stating that I have duplicate symbols. I looked online where the find these duplicates but have had no luck:

    enter image description here

    Any ideas how to fix this?

  • Yaro
    Yaro almost 8 years
    You are the man! Just made a new xCode 7.3.1 project and the default setting is YES :(
  • commscheck
    commscheck over 7 years
    This option was switched on for me by Xcode's "Update project to recommended settings" window.
  • Sazzad Hissain Khan
    Sazzad Hissain Khan over 7 years
    Update project to recommended settings, how do i do that? i mean from which menu?
  • Trip
    Trip over 7 years
    @SazzadHissainKhan It's in your build settings.
  • Vladimir
    Vladimir over 7 years
    That's LOL, but true ;D
  • Sung
    Sung almost 7 years
    Thanks for this! Was struggling with an issue with a constants.h file I was creating lol
  • reetu
    reetu almost 7 years
    Thank you for the answer I too was facing the same issue and your answer worked for me...
  • Sumit Kumar Saha
    Sumit Kumar Saha over 6 years
    Thanks, i was struggling for this problem for past 3-4 hrs
  • Imdad Ali
    Imdad Ali over 6 years
    how to? can you please guide me step by step
  • showmyroutes
    showmyroutes almost 6 years
    You are the best
  • Fattie
    Fattie over 5 years
    priceless tip, but doh didn't help in my case! :O
  • Dorald
    Dorald about 5 years
    Step 2: Solved my problem. Thank you :)
  • user426132
    user426132 almost 5 years
    this just happened to me.. I blame code completion for everyting
  • Supertecnoboff
    Supertecnoboff over 4 years
    Thank you so much, I didn't realise I had made this mistake, was taking up all my time. Thanks again 👍
  • andrewlundy
    andrewlundy almost 4 years
    I was using the Google Places SDK, integrated through CocoPods - 3.9.0, and this answer fixed my issue.
  • Vladimir Sukanica
    Vladimir Sukanica over 3 years
    Thanks, you saved me a lot of headache
  • Sanzio Angeli
    Sanzio Angeli over 3 years
    Note you have to specify the exact project you want to deintegrate. I would recommend dragging the project from xcode itself as opposed to from your file explorer... Had over 450 of these arm64 errors...
  • VyacheslavBakinkskiy
    VyacheslavBakinkskiy over 3 years
    Helps with switching the "No Common Blocks" compiler setting to NO
  • bdroid
    bdroid over 3 years
    do you have any guide?
  • hbk
    hbk over 2 years
    time-saving answer