Mach-O Linker Error Xcode 5

时光怂恿深爱的人放手 提交于 2019-12-05 20:57:27

Remove armv7s from valid architectures section and it will work.

Build Settings --> Architectures --> Valid Architectures

Change the Buid setting ---> Architecture ---> Build Active Architecture only ---> Yes This solved my issue for using old cordova versions in new Xcode 5

I had the same problem and the issue was that I have accidently imported a .m file instead of .h in an implementation file - hope it helps

libCordova.a, file was built for archive which is not the architecture being linked (armv7s)

Looks like your copy of libCordova framework does not contain a armv7s binary.

You need to change the Architectures in the CordovaLib project, not in your lite_test project. I assume when you said you tried changing the Architectures, you only tried in your project and not the Cordova project (since changing in Cordova worked for me) . Remember that Cordova is a dependent project and is compiled into the binary each time you run.

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