XCode 6.1 Missing required architecture X86_64 in file for extern library

旧巷老猫 提交于 2019-12-05 13:01:25

This means your .a library doesn't contain the x86_64 architecture (You can run lipo -info /path/to/your/lib.a to verify it). If you don't have the source code of the library, you have to modify your own project. In the build settings, change the valid architectures to armv7 and i386, or change Architectures to armv7 only. However, by doing so, your project won't be compiled to the arm64 architecture, which is required when uploading to the App Store after Feb 2015, according to Apple's announcement.

If your library doesn't contain x86_64 architecture, it is likely that it doesn't contain arm64 either. So you should avoid using old libraries.

If a library doesn't have the X86_64 architecture you can build it if you've picked a connected device rather than a simulator for your build target.

Basically, you can still build and develop but you can't use the simulator.

Click on your project > build setting > architecture. Change architecture as armv7 and delete others like armv6,etc, Then it will work :-

In the project that builds libStimshop_SDK.a, be sure the "Architectures" setting is set to $(ARCHS_STANDARD) and that it includes 64-bit settings in the compiler settings. Be sure the "Valid Architectures" setting includes 64-bit as well.

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