xcode 8在模拟器上运行报错Undefined symbol

2016-09-20  本文已影响0人  lingzi2016

昨天升级了xcode8,原有的项目各种报错啊。其中这个错误 只是在模拟器上不行 ,真机上是可以的。

集成友盟社交化分享组件并且在模拟器上编译时报错:

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_$_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)

修改Build Settings -Build Active Architecture Only 中的Debug改为YES,就可以正常运行了!

上一篇下一篇

猜你喜欢

热点阅读