VALID_ARCHS = arm64 armv7 armv7s not generating any armv7s

僤鯓⒐⒋嵵緔 提交于 2019-12-24 09:20:27

问题


I'm having a question about the compilation on iOS. I'm generating a framework and it used to generate arm64, armv7 and armv7s (+ simulators with lipo and fun).

The thing is, armv7s is not present in the binary anymore.

Architectures in the fat file are: i386 x86_64 armv7 arm64

But I clearly asks in my XCConfig for VALID_ARCHS = arm64 armv7 armv7s. I verified that the XCConfig was indeed used and not overridden.

I tried various google search but most of the time we find people not understanding why their app is not compiling with the wrong version of the lib.

So now, I'm coming here, the last chance to understand why no armv7s lib is being created for my framework. Maybe it's as simple as "it's not possible anymore".


回答1:


XCode has dropped support for armv7s since XCode 6 I think, the ${ARCHS_STANDARD} now only include armv7, arm64 and simulator will include i386, x86_64, so your fat static library/framework will only include them.

To support armv7s, add it under ${ARCHS_STANDARD} in Architectures field and build again.



来源:https://stackoverflow.com/questions/51668718/valid-archs-arm64-armv7-armv7s-not-generating-any-armv7s

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