关于Undefined symbols for architecture armv7s

在使用XCode4.5和Mac 10.7.5环境中编译Three20工程中的TTCoreDemo过程中,出现了:

 Undefined symbols for architecture armv7s的信息,但是该TTCoreDemo.app却出现在Build/Products/Debug-iphoneos/的目录中,这让我非常的奇怪。

 经过上网搜索一些资料之后,发现armv7s是针对iPhone5的一些优化,因此,我怀疑是TTCoreDemo应用我依赖的库Three20Core的Build Setting中出现了一些问题。

 因此,重新打开Three20Core.xcodeproj文件,在targets中的Build Settings tab页中找到了Architectures中的三项进行了修改,都加入了armv7s这一项。再重新对ios Device进行编译。



  最后打开TTCoreDemo工程,针对iOS Device 进行编译,通过了,问题消失了。

 

猜你喜欢

转载自hulefei29.iteye.com/blog/1816500