Xcode4链接问题。文件是为存档而构建的,而不是链接的体系结构(arm6) [英] Xcode4 Linking Problem. File was built for archive which is not the architecture being linked (arm6)

查看:128
本文介绍了Xcode4链接问题。文件是为存档而构建的,而不是链接的体系结构(arm6)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我切换到Xcode4,当我编译项目时出现以下错误。

Recently, I switched to Xcode4 and when I compile my project I got following error.

ld: warning: ignoring file /Users/myname/Library/Developer/Xcode/DerivedData/appname-hezrgyqimckztgbdlslkavphdclw/Build/Products/Debug-iphoneos/libTapkuLibrary.a, file was built for archive which is not the architecture being linked (armv6)
Undefined symbols for architecture armv6:
  "_OBJC_CLASS_$_TKLoadingView", referenced from:
      objc-class-ref in RootViewController.o

我打开了TapkuLibrary并检查它的架构设置为'Standard(armv6 armv7)'。

I opened the TapkuLibrary and checked that it's Architectures set to 'Standard (armv6 armv7)'.

我该怎么做才能解决这个问题问题?

What can I do to fix this problem?

推荐答案

我找出了导致问题的原因。我将TapkuLibrary的'Build Active Architecture'从Yes更改为No并且编译没有问题。

I figured out what caused the problem. I changed 'Build Active Architecture Only' of TapkuLibrary from Yes to No and it compiles with no problem.

这篇关于Xcode4链接问题。文件是为存档而构建的,而不是链接的体系结构(arm6)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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