Xcodearmv7问题
我的应用程序适用于模拟器,但不适用于设备:
ld:警告:忽略文件 /Users/newuser/Downloads/release-1.5-tag/build/Release-iphoneos/parsekit.a,该文件是为存档而构建的,该文件不是正在链接的架构(armv7)
我正在使用ParseKit lib 似乎不喜欢与armv7 混合。
我想我必须与图书馆进行某种形式的链接?但如何呢?
谢谢。
My application builds fine for the simulator but not the device:
ld: warning: ignoring file /Users/newuser/Downloads/release-1.5-tag/build/Release-iphoneos/parsekit.a, file was built for archive which is not the architecture being linked (armv7)
I'm using the ParseKit lib which doesn't seem to like being mixed with armv7.
I think I have to do some form of linking with the library? But how?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您似乎已经链接了该库,只是它不是为armv7构建的。
ParseKit Xcode 项目有一个名为 ParseKitMobile 的目标,它是为 armv7 构建的。尝试使用它。
您还可以尝试将“Base SDK”设置更改为 iOS,这将为您提供用于建筑学。
You seem to have linked the library, only it is not built for armv7.
The ParseKit Xcode project has a target called ParseKitMobile, which is built for armv7. Try using that.
You could also try changing the "Base SDK" setting to iOS, that should give you arm options for the architecture.
您可能必须为
armv7
架构重新编译 ParseKit。您是否遵循 ParseKit 主页上的 iPhone 说明?它似乎没有明确提到armv7,但我想如果您将 ParseKit.a 作为目标从 ParseKit 的项目文件添加到您自己的项目文件中,那么 XCode 应该识别出该目标必须重新 -专为armv7
构建。注意:这些说明适用于 XCode 3,我猜您正在使用 XCode 4,但整个想法应该是相同的。
Chances are that you'll have to re-compile ParseKit for the
armv7
architecture. Are you following the instructions for iPhone on the ParseKit homepage? It does not seem to mention armv7 explicitly, but I guess if you addparsekit.a
as a target from ParseKit's project file to your own project file, then XCode should recognize that the target has to be re-built forarmv7
.Note: the instructions are for XCode 3 and I guess you are using XCode 4, but the whole idea should be the same.
parsekit.a
是一个静态库,它必须与具有相同 ABI 的二进制文件静态链接。因此,您有以下选择:parsekit.a
;parsekit.a
编写包装器,该包装器将构建为共享库并公开您需要的所有 API。parsekit.a
is a static library and it has to be statically linked with binaries having the same ABI. So you have following options:parsekit.a
has;parsekit.a
for the armv7;parsekit.a
that will be built as shared library and expose all the API you need.