Xcode 4 Final-"armv6 armv7"与armv6库链接时出现问题 [英] Xcode 4 Final - "armv6 armv7" issue while linking with armv6 libs

查看:83
本文介绍了Xcode 4 Final-"armv6 armv7"与armv6库链接时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直到xcode 4 final(我在可用时使用3.latest和4 GM)都没有发生.当我升级到xcode 4最终版本时,尝试将armv7版本与我的非armv7库链接时开始出现链接错误(我的项目已设置为默认的标准armv6 armv7有效架构):

Until xcode 4 final (I was using 3.latest and 4 GM for the time it was available) this didn't happen. When I upgraded to xcode 4 final version, I started getting a linking error while trying to link the armv7 version with my non armv7 library (my project is set with the default Standard armv6 armv7 valid architectures):

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个链接错误.

The armv6 version compiles just fine, but the overall compilation process fails with 77 link errors.

我了解这是预期的行为,它不会与armv6库链接到armv7.该修复程序将我的项目设置为仅armv6.我的问题是:为什么这在以前的xcode版本中有效?

I understand this is the expected behavior, it wont link towards armv7 with an armv6 lib. The fix is setting my project to armv6 only. My question here is: why was this working in the previous versions of xcode?

如果仅将其设置为armv6,我将开始收到此警告:

If I set to armv6 only, I start to get this warning:

Check dependencies

[BWARN]warning: all apps should include an armv7 architecture (current ARCHS = "armv6").

我不喜欢看到警告:-)遇到类似问题的人吗?

I don't like seeing warnings :-) Anybody having similar issues?

谢谢

费尔南多

推荐答案

我只是在项目"->构建设置"->体系结构"选项卡中将构建活动体系结构"仅更改为是".

I just turned the Build active architecture only to Yes in the Project -> Build Setting -> Architectures tab.

这篇关于Xcode 4 Final-"armv6 armv7"与armv6库链接时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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