g***@qq.com
g***@qq.com
  • 发布:2025-03-07 15:50
  • 更新:2025-03-07 15:50
  • 阅读:21

打包报错:cannot load module 'EMMSDK'(第三方iOS framework)

分类:uni-app x

我在一个新建的空白uni-app x工程的uni_modules目录下创建了uts插件,放了自己打包的EMMSDK.framework文件和对应的EMMSDKResources.bundle文件,在app-ios/index.uts里添加了接入代码。本来工程运行到iOS App基座是可以运行的,但是现在云端打包的过程中会失败,制作自定义调试基座也失败,错误信息如下:

[HBuilder] 15:27:41.556 项目 emm-sdk-demo [__UNI__3B076BF]打包状态:  
[HBuilder] 15:27:41.556 时间: 2025-03-07 15:27:40     类型: iOS Appstore(真机)    队列中  
[HBuilder] 15:28:18.044   
[HBuilder] 15:28:18.044 项目 emm-sdk-demo [__UNI__3B076BF]打包状态:  
[HBuilder] 15:28:18.044 时间: 2025-03-07 15:27:40     类型: iOS Appstore(真机)    打包失败    错误日志: https://app.liuyingyong.cn/build/errorLog/a6dceb00-fb25-11ef-8f2e-d33f54dfbe0d  
[HBuilder] 15:28:18.372 uni_modules/emm-sdk/utssdk/app-ios/src/index.swift:3:8: error: cannot load module 'EMMSDK' built with SDK 'iphoneos18.2' when using SDK 'iphoneos18.1': uni_modules/emm-sdk/utssdk/app-ios/Frameworks/EMMSDK.framework/Modules/EMMSDK.swiftmodule/arm64-apple-ios.swiftmodule  
[HBuilder] 15:28:18.372 uni_modules/emm-sdk/utssdk/app-ios/src/index.swift:3:8: error: cannot load module 'EMMSDK' built with SDK 'iphoneos18.2' when using SDK 'iphoneos18.1': uni_modules/emm-sdk/utssdk/app-ios/Frameworks/EMMSDK.framework/Modules/EMMSDK.swiftmodule/arm64-apple-ios.swiftmodule

导出本地打包App资源也是成功的。
最主要是这段错误信息内容太少,不知道怎么排查。

2025-03-07 15:50 负责人:无 分享
已邀请:

要回复问题请先登录注册