首页 > 移动平台 > 详细

iOS 链接错误file was built for archive which is not the architecture being linked (i386)

时间:2015-03-15 09:28:12      阅读:549      评论:0      收藏:0      [点我收藏+]
iOS 环境下,链接某个静态库(.a文件)时,Xcode 会出现链接错误:
xxx file was built for archive which is not the architecture being linked (i386)
这是因为静态库是为iOS 环境编译的,并不能在模拟器环境下使用,只要将Build 目标改成设备即可。如果是:
ld: warning: ignoring file ./libsasl2.a, file was built for archive which is not the architecture being linked (armv7): ./libsasl2.a
则表示静态库的编译目标不是armv7(可能是armv6),需重新为armv7 编译静态库。

iOS 链接错误file was built for archive which is not the architecture being linked (i386)

原文:http://blog.csdn.net/yamingwu/article/details/44265193

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!