|
/

为什么release模式会报not found for architecture arm64的错误

Rrtu***@gmail.com
发布于 4 年前
314
社会化分享 U-Share
SDK集成与升级
 "_OBJC_CLASS_$_SendAuthReq", referenced from:
objc-class-ref in WechatAuth.o
"_OBJC_CLASS_$_SendAuthResp", referenced from:
objc-class-ref in WechatManager.o
"_OBJC_CLASS_$_SendMessageToWXReq", referenced from:
objc-class-ref in WechatShare.o
"_OBJC_CLASS_$_ShowMessageFromWXReq", referenced from:
objc-class-ref in WechatManager.o
"_OBJC_CLASS_$_UMCommonLogManager", referenced from:
objc-class-ref in UMHelper.o
"_OBJC_CLASS_$_UMConfigure", referenced from:
objc-class-ref in UMHelper.o
"_OBJC_CLASS_$_UMShareImageObject", referenced from:
objc-class-ref in UMShareSwiftInterface.o
"_OBJC_CLASS_$_UMSocialGlobal", referenced from:
objc-class-ref in UMHelper.o
"_OBJC_CLASS_$_UMSocialManager", referenced from:
objc-class-ref in UMHelper.o
objc-class-ref in UMShareSwiftInterface.o
"_OBJC_CLASS_$_UMSocialMessageObject", referenced from:
objc-class-ref in UMShareSwiftInterface.o
"_OBJC_CLASS_$_WXApi", referenced from:
...
"_OBJC_CLASS_$_WXImageObject", referenced from:
objc-class-ref in WechatShare.o
"_OBJC_CLASS_$_WXLaunchMiniProgramReq", referenced from:
objc-class-ref in WechatShare.o
"_OBJC_CLASS_$_WXMediaMessage", referenced from:
objc-class-ref in WechatShare.o
ld: symbol(s) not found for architecture arm64

pod文件:

use_frameworks!
install_all_flutter_pods(flutter_application_path)
pod 'Kingfisher', '~> 7.0'
pod 'Files', '~> 4.0'
pod 'UTDID'
pod 'UMCommon'
pod 'UMDevice'

pod 'UMCCommonLog'
pod 'UMAPM'
pod 'UMShare/UI'
pod 'UMShare/Social/WeChat'
pod 'UMShare/Social/QQ'
pod 'UMShare/Social/Email'
pod 'UMShare/Social/SMS'
pod 'AliyunOSSiOS'

在debug模式下真机运行,都没问题,功能也正常。

但是release模式下编译就报了这个错误,网上的方法都试了遍,都没解决。

3个回答
 
4 年前

需要在真机下运行编译,不要用模拟器

 
4 年前

你这个大概是 flutter 和 native 混合开发导致的。

需要注意:集成了flutter 在 release 模式下只能在真机上运行编译,不能在模拟器上编译

 
4 年前

你可以测试demo是否可以

Loading ...
登录社区,分享你的经验