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

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)

碰到你一样的问题,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 也行。

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

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

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

不行啊 ,还是报错!