duplicate symbols for architecture arm64 (Xcode error)

后端 未结 3 1658
梦如初夏
梦如初夏 2021-01-18 05:45

I deleted all reference to GoogleMobileAdsSDKiOS-7.1 from my project and added 7.4.1. When I ran app on simulator everything works fine but when running on device I get App

相关标签:
3条回答
  • 2021-01-18 06:21

    Try remove the "-ObjC" linker flag from the "Other Linker Flags" section of build settings.

    0 讨论(0)
  • 2021-01-18 06:23

    Had the same issue, here is how I "solved" it: simply give up on 7.4.1

    The issue goes away if you go back to an earlier version: https://dl.google.com/googleadmobadssdk/googlemobileadssdkios-7.3.1.zip

    I do not know if I did anything wrong, but I'll take a wild guess and put the blame on Google on this one. It is likely nobody bothered testing the arm64 build of this framework.

    No matter how much time I spent trying to tweak it it would always fail, while for some reason the 32bits version would work fine.

    Since you need both 32 and 64 to work in order to push an ipa to the iTunes store, we'll have to do with the previous version.

    Hope this will save other the pain I had to go through.

    0 讨论(0)
  • 2021-01-18 06:30

    I have a feeling you're somehow still getting the old framework linked into your app in addition to the new one, but I'm not certain of that. Take a look at the build log and see what exact ld command is being used to link things together.

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