解决xcode5升级后,Undefined symbols for architecture arm64:问题

The issue is that the cocoapods have not been built for arm64 architecture yet thus they cannot be linked when you build them. Likely you cannot use those packages until they are updated and use that architecture. You can fix the linker error by going to project -> target (your project name) -> build settings and change architectures to standard architectures (armv7, armv7s), and valid architectures to armv7, armv7s.

Note though, this means you won't get the full power of the 64 bit processor. You said you are building for the 5s, so there may be some reason you need this. If you for some reason absolutely need that power (perhaps you are building a game), and desperately need those files, you could submit a pull request and then recompile the project to arm64 by setting those same fields to arm64 in the files you pulled from the open source projects. But, unless you really need these files to be 64 bit compatible, that seems like a bit of overkill for now.

EDIT: Some people also reported that setting Build For Active Architectures to YES was also necessary to solve this problem.

 

**********************

解决了我的问题

ARCHS = armv7 armv7s

VALID_ARCHS = armv6 armv7 armv7s arm64

 

 

 

本文转载至 http://blog.csdn.net/forlong401/article/details/20059841

 

用Xcode提交市场的时候,报如下的错误:

解决xcode5升级后,Undefined symbols for architecture arm64:问题_第1张图片

 

 

ERROR ITMS-9000: "this bundle is invalid. armv7s are required to include armv7 architecture." at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)

 

解决方法:

找到项目配置的架构Architecture部分,将“Build Active Architecture Only”里的Release设置为No(如果不是no的话,当你开着模拟器或者插着手机的时候,就只编译当前的cpu架构的版本),如图所示:

解决xcode5升级后,Undefined symbols for architecture arm64:问题_第2张图片

 

解决xcode5升级后,Undefined symbols for architecture arm64:问题_第3张图片

转载于:https://www.cnblogs.com/Camier-myNiuer/p/3657135.html

你可能感兴趣的:(解决xcode5升级后,Undefined symbols for architecture arm64:问题)