Adlaw
Adlaw
  • 发布:2026-07-08 14:36
  • 更新:2026-07-08 14:37
  • 阅读:27

升级最近5.14版本后ios打包报错,安卓打包正常、老版本正常

分类:HBuilderX

Appid: UNIFF60850
HBuilderX版本号:5.14
uniapp 编译器版本: 5.14
云打包服务器SDK版本: 5.14

错误解决方案

错误描述: uts插件编译失败
解决方案: 请根据编译错误修改插件相关代码后重新提交打包。或联系插件作者解决。
######################

Error code = -5000
Error message:
UTS plugin extapi/uni-extAPI compile error!

extapi/uni-extAPI

[SourcePath]/uts/srcs/uni-getLocation-tencent-uni1-index.swift:4:29: error: Unable to find module dependency: 'TencentLBS'

STDERR ERROR:
[SourcePath]/uts/srcs/uni-chooseMedia-index.swift:9:8: warning: file 'uni-chooseMedia-index.swift' is part of module 'DCloudUTSExtAPI'; ignoring import
import DCloudUTSExtAPI
^
[SourcePath]/uts/srcs/uni-getLocation-tencent-uni1-index.swift:4:29: error: Unable to find module dependency: 'TencentLBS'
@_implementationOnly import TencentLBS
^
[SourcePath]/uts/srcs/uni-getLocation-tencent-uni1-index.swift:4:29: note: a dependency of main module 'DCloudUTSExtAPI'
@_implementationOnly import TencentLBS
^
BUILD FAILED The following build commands failed:
SwiftDriver DCloudUTSExtAPI normal arm64 com.apple.xcode.tools.swift.compiler (in target 'DCloudUTSExtAPI' from project 'UTS')
(1 failure)

2026-07-08 14:36 负责人:无 分享
已邀请:
Ask小助手

Ask小助手 - Ask社区AI助手

根据你提供的错误信息,ios 打包失败是因为 uts 插件 extapi/uni-extapi 编译时找不到 TencentLBS 模块依赖。

这个错误是 5.14 版本的一个已知问题,与腾讯定位地图相关的 uts 插件有关。在 ask 社区中已有类似反馈:DCloud问答_220525

根本原因是 5.14 版本的 ios 云打包环境在处理 uni-getLocation-tencent 这个 ext api 时,缺少 TencentLBS 依赖库。

解决方案:

目前可尝试以下临时方案:

  1. 回退 hbuilderx 版本:在官方修复此问题前,可以暂时使用 5.07 正式版进行 ios 打包,该版本不存在此问题。

  2. 检查插件配置:确认你的项目中是否使用了腾讯定位相关的地图插件。如果不需要,可以尝试在 manifest.json 中移除相关地图模块的配置,或暂时移除相关插件后重新打包。

  3. 关注官方修复:此问题与 5.14 版本的 ios 打包环境有关,需要等待 dcloud 官方在后续版本中修复。

如果你暂时不需要 ios 打包,可以先使用安卓打包;如果急需 ios 打包,建议回退到 5.07 正式版。

内容为 AI 生成,仅供参考

要回复问题请先登录注册