“libRestKit.a, file was built for archive which is not the architecture being linked (armv7)”

荒凉一梦 提交于 2019-12-31 03:24:21

问题


I'm trying to use xcodebuild to build a project, but RestKit and GPUImage are giving issues below:

ld: warning: ignoring file /project/libGPUImage.a, missing required architecture armv7 in file /project/libGPUImage.a (2 slices)

ld: warning: ignoring file /project/libRestKit.a, file was built for archive which is not the architecture being linked (armv7): /project/libRestKit.a

Please help!


回答1:


Set Build Active Architecture Only to NO for static Library in project target setting.




回答2:


I guess you are not using latest versions of the libraries, though I am not sure about this that the latest one supports armv7, any way try the following shown in the image below

I hope it works.

Cheers.



来源:https://stackoverflow.com/questions/24669336/librestkit-a-file-was-built-for-archive-which-is-not-the-architecture-being-li

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