VALID_ARCHS = arm64 armv7 armv7s 不生成任何 armv7s [英] VALID_ARCHS = arm64 armv7 armv7s not generating any armv7s

查看:52
本文介绍了VALID_ARCHS = arm64 armv7 armv7s 不生成任何 armv7s的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于 iOS 编译的问题.我正在生成一个框架,它用于生成 arm64、armv7 和 armv7s(+ 带有 lipo 和 fun 的模拟器).

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).

问题是,armv7s 不再存在于二进制文件中.

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

fat 文件中的架构为:i386 x86_64 armv7 arm64

Architectures in the fat file are: i386 x86_64 armv7 arm64

但我在 XCConfig 中明确要求 VALID_ARCHS = arm64 armv7 armv7s.我验证了 XCConfig 确实被使用了并且没有被覆盖.

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.

所以现在,我来到这里,这是了解为什么没有为我的框架创建 armv7s 库的最后机会.也许就像这不再可能"一样简单.

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".

推荐答案

XCode 从 XCode 6 开始就放弃了对 armv7s 的支持,我认为,${ARCHS_STANDARD} 现在只有包含 armv7、arm64 和模拟器将包含 i386、x86_64,所以你的胖静态库/框架将只包含它们.

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.

要支持armv7s,请将其添加到Architectures 字段中的${ARCHS_STANDARD} 下并重新构建.

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

这篇关于VALID_ARCHS = arm64 armv7 armv7s 不生成任何 armv7s的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆