您的当前位置:首页友盟分享sdk,编译提示i386符号没定义

友盟分享sdk,编译提示i386符号没定义

2024-12-13 来源:哗拓教育

在使用5.2.1版本友盟iOS分享sdk时,模拟器编译运行会提示缺失i386架构的问题 ,具体报错如下:

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)

这是由于最新版本的QQ sdk去除了i386架构的支持

因此,后续凡使用了新版QQ sdk,都只要在真机运行通过即可

显示全文