[HBuilder] 10:00:59.420 时间: 2023-02-16 09:59:59 类型: iOS Appstore 打包失败 错误日志: https://ide.dcloud.net.cn/build/errorLog/9dd18320-ad9d-11ed-a5dd-7f3c259d3c80
 
                                        
                                    
                                    - 发布:2023-02-16 10:07
- 更新:2023-02-16 10:25
- 阅读:606
 
                                                                    
                                                                BoredApe - 有问题就会有答案。
Undefined symbols for architecture armv7:  
\"_OBJC_CLASS_$_CMMotionManager\", referenced from:  
objc-class-ref in TBScanSDK(TBScanViewController.o)  
ld: symbol(s) not found for architecture armv7为了避免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"    
            ]    
        }    
    }    
}请参考:注意事项
 
             
             
             
			 
            
鄂尔浑软件 (作者)
可以了,非常感谢!
2023-02-16 10:37