直到 xcode 4 final (我使用 3.latest 和 4 GM 可用时)这并没有发生。当我升级到 xcode 4 最终版本时,在尝试将 armv7 版本与我的非 armv7 库链接时开始出现链接错误(我的项目设置为默认的标准 armv6 armv7 有效架构):
ld: warning: ignoring file ../bin/iOS static/arm/libssl.a, file was built for archive which is not the architecture being linked (armv7)
ld: warning: ignoring file ../bin/iOS static/arm/libcrypto.a, file was built for archive which is not the architecture being linked (armv7)
Undefined symbols for architecture armv7: -- list of symbols --
armv6 版本编译得很好,但整个编译过程失败,出现 77 个链接错误。
我知道这是预期的行为,它不会通过 armv6 库链接到 armv7。修复将我的项目设置为仅 armv6。我的问题是:为什么这在以前版本的 xcode 中有效?
如果我仅设置为 armv6,我开始收到此警告:
Check dependencies
[BWARN]warning: all apps should include an armv7 architecture (current ARCHS = "armv6").
我不喜欢看到警告:-) 有人有类似的问题吗?
谢谢,
费尔南多