Xcode 链接错误:对于架构 armv7 文件太小
我收到这个奇怪的链接器错误:
ld:在 /Users/.../test project/iSMP.framework/iSMP 中,对于架构 armv7 来说文件太小
collect2: ld 返回 1 退出状态命令 /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 失败,退出代码为 1
Xcode 版本:4.0.2
如果我为模拟器进行编译,我得到
...文件对于 i386 架构来说太小
谷歌根本没有帮助..
我已经尝试过:
- 重新添加框架
- 清除搜索路径
- 将框架移动到不同的目录并重新添加。
更新:lipo -info libiSMP-2.1.a 的输出
fat文件:libiSMP-2.1.a中的架构为:armv6 armv7 i386
所以,这不是架构不匹配;
提前致谢!
I get this strange linker error:
ld: in /Users/.../test project/iSMP.framework/iSMP, file too small for architecture armv7
collect2: ld returned 1 exit status Command
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2
failed with exit code 1
Xcode vers: 4.0.2
If I compile for simulator, i get
... file too small for architecture i386
google doesn't help at all..
I already tried to:
- re-add the framework
- clear search path
- move framework to a different directory and re-add.
Update: output from lipo -info libiSMP-2.1.a
Architectures in the fat file: libiSMP-2.1.a are: armv6 armv7 i386
so, it's not from architecture mismatch;
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经从该框架的支持团队收到了解决方案(谢谢大家):
TL/DR:符号链接从 OS/X 移动到 Windows 时会转换为平面文件。您需要续订它们。
I've received the solution from the support team of this framework (thanks guys):
TL/DR: Symbolic links are turned into flat files when they are moved from OS/X to Windows. You need to renew them.