Apple Mach-O Linker Error armv7s & libGoogleAdMobAds.a

后端 未结 4 1922
长情又很酷
长情又很酷 2021-02-07 14:58

I\'ve just upgraded my app to run on the new iPhone5 simulator, however when I try to build it for my iPhone 4S device, I get this Apple Mach-O Liner error.

相关标签:
4条回答
  • 2021-02-07 15:31

    iPhone5's cpu is A6(armv7s). The existing Admob sdk does not support it. We have to wait for admob to update the sdk.

    0 讨论(0)
  • 2021-02-07 15:31

    Try this:

    This article copy an armv7 lib code as an armv7s and build into the original lib. so xcode will see that lib has an armv7s code/arch

    http://www.galloway.me.uk/2012/09/hacking-up-an-armv7s-library/

    0 讨论(0)
  • 2021-02-07 15:36

    The same answer as I gave in this thread:

    If you want to remove the support for any architecture, try this:

    Project -> Build Settings -> remove the architecture from "valid architectures"

    You can use this as a temporary solution until the library has been updated. You have to remove the flag from your own project.

    0 讨论(0)
  • 2021-02-07 15:56

    Update to Admob 6.2.0 or later.

    See this post: http://googleadsdeveloper.blogspot.com/2012/09/migrating-to-admob-v62-for-ios.html.

    Also, include the AdSupport framework and remove the -all_load flag. You've got to use the -ObjC flag however.

    This works for me, finally!!

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