duplicate symbols for architecture arm64 (Xcode error)

谁说胖子不能爱 提交于 2019-12-01 17:36:49

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

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!