【发布时间】:2012-03-24 23:03:52
【问题描述】:
我有一个支持 amrv6 和 armv7 的已发布应用程序。 现在我有一个只兼容 armv7 的升级(我添加了一个依赖于 armv7 的外部库)。当我尝试将应用程序提交到商店时,我收到错误 detailed in
我了解之前的错误,我需要更改我的应用程序,使其支持两种架构。我的问题是我的代码依赖于仅与 armv7 兼容的库。如果我将项目的属性更改为同时支持 armv6 和 armv7,则会出现编译错误(详情如下)。我需要能够编译支持两种架构的代码: armv7 使用我依赖的库进行编译 armv6 有不同的代码,不依赖于库。
我怎样才能做到这一点?
错误详情:
• the compile crash is in one Lib file (.a) and the error says :
ld: warning: directory not found for option '-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/gcc/arm-apple-darwin10/4.0.1' ld: in /Users/.../(lib file).a, file is universal but does not contain a(n) armv6 slice for architecture armv6 Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
提前致谢
【问题讨论】:
-
您可能想用 iOS 和 xcode 标记您的问题。与在 ARM 汇编中滚动您自己的体系结构相关调度程序相比,更多的是关于如何使用此工具链生成通用二进制文件的问题。
标签: ios xcode compiler-errors armv7 armv6