https://ide.dcloud.net.cn/build/errorLog/b9386490-1f8b-11ee-81e2-edac2acce227
- 发布:2023-07-11 09:59
- 更新:2023-07-11 12:24
- 阅读:431
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&Gallery、Orientation模块中配置的系统库AssetsLibrary.framework、CoreMotion.framework,您打包时没有勾选以上模块,所以打包失败,可以通过以下解决方案处理:
方案一. 在manifest.json的源码视图(可视化界面中没有使用Orientation模块配置)中配置以下模块:
"app-plus" : {
"modules" : {
"Camera": {},
"Orientation": {}
}
}
方案二. 在manifest.json中配置依赖的系统库,如下:
"app-plus" : {
"distribute" : {
"ios": {
"frameworks": [
"AssetsLibrary.framework",
"CoreMotion.framework"
]
}
}
}
请参考:注意事项
boonook (作者)
https://ide.dcloud.net.cn/build/errorLog/b9386490-1f8b-11ee-81e2-edac2acce227
2023-07-11 10:32