在准备给项目添加分享功能前,本人专门建了个工程来研究友盟分享,参照官方文档,成功的分享到了微信,但是,当本人集成到现有的项目中时,编译报错,这个是13年的老项目了。本人是使用cocoapod导入友盟分享的
Undefined symbols for architecture armv7:
“_OBJC_CLASS_$_UMSocialSinaSSOHandler”, referenced from:
objc-class-ref in AppDelegate.o
“_OBJC_CLASS_$_UMSocialQQHandler”, referenced from:
objc-class-ref in AppDelegate.o
“_OBJC_CLASS_$_UMSocialWechatHandler”, referenced from:
objc-class-ref in AppDelegate.o
“_OBJC_CLASS_$_UMSocialData”, referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture armv7:
“_OBJC_CLASS_$_UMSocialSinaSSOHandler”, referenced from:
objc-class-ref in AppDelegate.o
“_OBJC_CLASS_$_UMSocialQQHandler”, referenced from:
objc-class-ref in AppDelegate.o
“_OBJC_CLASS_$_UMSocialWechatHandler”, referenced from:
objc-class-ref in AppDelegate.o
“_OBJC_CLASS_$_UMSocialData”, referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方案
5
你友盟的库没有导全,检查一些`下framework是不是全部添加了
本人建议还是手动添加友盟的库
本人记得假如有用到qq和微信的话要单独添加他们的两个文件夹,估计用pod安装的话可能不全,本人没试过
本人建议还是手动添加友盟的库
本人记得假如有用到qq和微信的话要单独添加他们的两个文件夹,估计用pod安装的话可能不全,本人没试过
5
图中TencentOpenAPI和Wechat两个文件夹是本人是手动添加的
你检查一下看看pod有没帮你加进去
5
1,把友盟的库全部添加;2,看看能否支持64位;
5
你导的库不支持armv7