2 xmq1991 xmq1991 于 2014.03.25 16:01 提问

Xcode升级到5.1以后,以前的项目报错
ios

Xcode升级后,之前的项目编译就报错,好像是链接错误,解决了很久都没搞定,
ld: warning: ignoring file /Users/zt1370/Desktop/2014-3-20 2/edooongps/EdooonGPS/libWeiboSDK.a, missing required architecture x86_64 in file /Users/zt1370/Desktop/2014-3-20 2/edooongps/EdooonGPS/libWeiboSDK.a (3 slices)
ld: warning: ignoring file ../EdooonFramework/TencentOpenAPI.framework/TencentOpenAPI, missing required architecture x86_64 in file ../EdooonFramework/TencentOpenAPI.framework/TencentOpenAPI (3 slices)
ld: warning: ignoring file /Users/zt1370/Documents/edooongps/EdooonGPS/SDWebImage.framework/SDWebImage, missing required architecture x86_64 in file /Users/zt1370/Documents/edooongps/EdooonGPS/SDWebImage.framework/SDWebImage (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GetMessageFromWXReq", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in libEdooonFramework.a(WeChatClient.o)
"_OBJC_CLASS_$_GetMessageFromWXResp", referenced from:
objc-class-ref in libEdooonFramework.a(WeChatClient.o)
"_OBJC_CLASS_$_QQApiImageObject", referenced from:
objc-class-ref in libEdooonFramework.a(TencentQQClient.o)
"_OBJC_CLASS_$_QQApiInterface", referenced from:
objc-class-ref in libEdooonFramework.a(TencentQQClient.o)
"_OBJC_CLASS_$_QQApiNewsObject", referenced from:
objc-class-ref in libEdooonFramework.a(TencentQQClient.o)
"_OBJC_CLASS_$_SDImageCache", referenced from:
objc-class-ref in Common+Additional.o
objc-class-ref in FormImageItemCell.o
"_OBJC_CLASS_$_SDWebImageManager", referenced from:
objc-class-ref in SearchResultViewController.o
objc-class-ref in TreasureShow.o
objc-class-ref in TreasureDetailViewController.o
objc-class-ref in ChatSessionViewController.o
objc-class-ref in FriendListViewController.o
objc-class-ref in KTPhotoView+SDWebImage.o
objc-class-ref in FriendSearchViewController.o
...
"_OBJC_CLASS_$_SendMessageToQQReq", referenced from:
objc-class-ref in libEdooonFramework.a(TencentQQClient.o)
"_OBJC_CLASS_$_SendMessageToWXReq", referenced from:
objc-class-ref in libEdooonFramework.a(WeChatClient.o)
"_OBJC_CLASS_$_ShowMessageFromWXReq", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in libEdooonFramework.a(WeChatClient.o)
"_OBJC_CLASS_$_TencentOAuth", referenced from:
objc-class-ref in libEdooonFramework.a(TencentQQClient.o)

4个回答

sqr15802791357
sqr15802791357   2014.04.02 15:34

碰到你一样的问题,stackOverflow说是链接错误。

missing required architecture x86_64 in file /Users/zt1370/Desktop/2014-3-20 2/edooongps/EdooonGPS/libWeiboSDK.a

libWeiboSDK.a 打包链接是32bit architecture

刚去微信公众平台下载demo源码,编译正常。于是build setting->architecture->other->复制$(ARCHS_STANDARD_32_BIT)
复制内容加在自己项目target build setting->architecture

再构建应该成功了

刚把valid architectures去掉arm64 也行。

lsf20080808
lsf20080808 刚把valid architectures去掉arm64 他还报1个错 No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).
大约 2 年之前 回复
lsf20080808
lsf20080808   2015.11.22 08:55

刚把valid architectures去掉arm64 他还报1个错

No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).

as7777071as
as7777071as 如果还报错的话,可以把Build Active Architecture Only设为NO试试
大约 2 年之前 回复
u014245691
u014245691   2016.07.29 19:40

不行啊 ,还是报错!

lsf20080808
lsf20080808   2015.11.22 09:10

直接把 build setting->architecture-> 修改为NO即可 图片说明

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!