M_先生
M_先生
  • 发布:2023-10-31 14:25
  • 更新:2023-10-31 16:46
  • 阅读:80

#插件讨论# 【 支付宝原生扫码插件 - mPaaS 】IOS打包失败

分类:uni-app

https://ide.dcloud.net.cn/build/errorLog/e0198d70-77b4-11ee-a05f-a35ea0f76f13

打包失败,帮忙看看什么问题呢

2023-10-31 14:25 负责人:无 分享
已邀请:
BoredApe

BoredApe - 有问题就会有答案。

0x73 0x69 0x6F 0x6E 0x73 0x2F 0x43 0x75 0x72 0x72 0x65 0x6E 0x74 )  
Undefined symbols for architecture arm64:  
\"_OBJC_CLASS_$_CMMotionManager\", referenced from:  
objc-class-ref in TBScanSDK(TBScanViewController.o)  
ld: symbol(s) not found for architecture arm64  
clang: error: linker command failed with exit code 1 (use -v to see invocation)  

为了避免App隐私合规检测报包含麦克风、相机/相册、运动等敏感权限,从HBuilderX3.6.11版本开始,将App打包默认包含的Barcode(扫码)、Camera&Gallery(相机和相册)、Orientation(传感器)、Record(录音)等调整为独立功能模块。您使用的支付宝原生扫码插件使用了Camera&GalleryOrientation模块中配置的系统库AssetsLibrary.frameworkCoreMotion.framework,您打包时没有勾选以上模块,所以打包失败,可以通过以下解决方案处理:
方案一. 在manifest.json的源码视图(可视化界面中没有使用Orientation模块配置)中配置以下模块:


"app-plus" : {    
    "modules" : {    
        "Camera": {},    
        "Orientation": {}    
    }    
}  

请参考:[注意事项](https://uniapp.dcloud.net.cn/tutorial/app-modules.html#%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9)
  • M_先生 (作者)

    谢谢

    2023-11-01 12:04

要回复问题请先登录注册