- ARCHIVE FAILED **The following build commands failed:
Ld /Users/[Name]/Library/Developer/Xcode/DerivedData/HBuilder-dchfinzkhabunlezhmnhazkothza/Build/Intermediates.noindex/ArchiveIntermediates/HBuilder/IntermediateBuildFilesPath/HBuilder.build/Release-iphoneos/HBuilder.build/Objects-normal/arm64/Binary/HBuilder normal arm64 (in target 'HBuilder' from project 'HBuilder')
(1 failure)
- 发布:2023-03-06 17:38
- 更新:2023-03-06 18:24
- 阅读:207
BoredApe - 有问题就会有答案。
Undefined symbols for architecture armv7:
\"_OBJC_CLASS_$_ALAssetsLibrary\", referenced from:
objc-class-ref in TBScanSDK(TBScanViewController.o)
\"_OBJC_CLASS_$_CMMotionManager\", referenced from:
objc-class-ref in TBScanSDK(TBScanViewController.o)
为了避免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"
]
}
}
}
请参考:注意事项
随风寻爱 (作者)
https://ide.dcloud.net.cn/build/errorLog/7ada7ab0-bc01-11ed-b4fe-7726c77d8a95
2023-03-06 18:15