东风逐月
东风逐月
  • 发布:2023-06-05 15:40
  • 更新:2023-06-07 10:46
  • 阅读:112

之前一直正常打包,今天ios打包突然失败,切换到旧版本依然打包失败

分类:HBuilderX

hbuilderx打包ios,突然失败,上周五还正常

2023-06-05 15:40 负责人:无 分享
已邀请:
BoredApe

BoredApe - 有问题就会有答案。

失败日志链接发一下

  • Zzz1012

    你好 能看下这个吗 https://ide.dcloud.net.cn/build/errorLog/272cb860-04d7-11ee-80a9-1ff8a142c321

    2023-06-07 10:13

BoredApe

BoredApe - 有问题就会有答案。

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": {}    
    }    
}

请参考:注意事项

  • Zzz1012

    可以了 非常感谢

    2023-06-07 11:01

要回复问题请先登录注册