我有一个已发布的应用程序,支持amrv6和armv7。现在我有一个升级版本,只兼容armv7(我添加了一个依赖于armv7的外部库)。当我尝试将应用程序提交到商店时,我会收到错误,详细信息请参见此处。
我理解之前的错误,并需要更改我的应用程序以支持两种体系结构。我的问题是,我的代码依赖于仅与armv7兼容的库。如果我更改项目属性以支持armv6和armv7,则会出现编译错误(详细信息如下)。我需要能够编译支持两种体系结构的代码: 使用我所依赖的库编译armv7 armv6具有不依赖于该库的不同代码。
我该怎么做?
错误详细信息:
• 编译崩溃在一个Lib文件(.a)中,错误提示为: 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
提前感谢。
我理解之前的错误,并需要更改我的应用程序以支持两种体系结构。我的问题是,我的代码依赖于仅与armv7兼容的库。如果我更改项目属性以支持armv6和armv7,则会出现编译错误(详细信息如下)。我需要能够编译支持两种体系结构的代码: 使用我所依赖的库编译armv7 armv6具有不依赖于该库的不同代码。
我该怎么做?
错误详细信息:
• 编译崩溃在一个Lib文件(.a)中,错误提示为: 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
提前感谢。