环境:xcode7.3.1 模拟器 release
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_QQApiAudioObject", referenced from:
objc-class-ref in libSocialQQ.a(UMSocialQQHandler.o)
"_OBJC_CLASS_$_QQApiImageObject", referenced from:
objc-class-ref in libSocialQQ.a(UMSocialQQHandler.o)
"_OBJC_CLASS_$_QQApiInterface", referenced from:
objc-class-ref in libSocialQQ.a(UMSocialQQHandler.o)
"_OBJC_CLASS_$_QQApiNewsObject", referenced from:
objc-class-ref in libSocialQQ.a(UMSocialQQHandler.o)
"_OBJC_CLASS_$_QQApiTextObject", referenced from:
objc-class-ref in libSocialQQ.a(UMSocialQQHandler.o)
"_OBJC_CLASS_$_QQApiVideoObject", referenced from:
objc-class-ref in libSocialQQ.a(UMSocialQQHandler.o)
"_OBJC_CLASS_$_SendMessageToQQReq", referenced from:
objc-class-ref in libSocialQQ.a(UMSocialQQHandler.o)
"_OBJC_CLASS_$_TencentApiInterface", referenced from:
objc-class-ref in InformationBodyController.o
objc-class-ref in HottestInforController.o
objc-class-ref in LMMyHomeController.o
objc-class-ref in LFTempleDetailVC.o
objc-class-ref in LFTopicDetailController.o
"_OBJC_CLASS_$_TencentOAuth", referenced from:
objc-class-ref in libSocialQQ.a(UMSocialQQHandler.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
错误说明:iPhone5s之前的手机,即iPhone 5,iPhone 4s 都是i386框架的设备,而腾讯官方去除了对 i386框架的支持,因此项目无法成功编译。最新版本的QQ sdk去除了i386架构的支持因此,后续凡使用了新版QQ sdk,都只要在真机运行通过即可。