这是config.json
{
"deploymentTarget": "12",
"dependencies-pod-sources": [
"https://github.com/CocoaPods/Specs.git",
"https://github.com/volcengine/volcengine-specs.git"
],
"dependencies-pods": [ // 可选, 需要依赖的pod库, HBuilderX 3.8.5+ 版本支持
{
"name": "SpeechEngineToB",
"version": "0.0.11.2-bugfix"
},
{
"name": "TTNetworkManager",
"version": "4.2.210.20"
}
]
}
报错如下
[HBuilder] 10:55:35.279 项目 啊圈App [UNI9888295]的打包状态:
[HBuilder] 10:55:35.279 时间: 2025-11-27 10:49:33 类型: iOS Appstore(真机) 打包失败 错误日志: https://app.liuyingyong.cn/build/errorLog/b4217240-cb3b-11f0-8603-b1a695724e74
错误日志打开如下:
Appid: UNI9888295
HBuilderX版本号:4.75
uniapp-cli版本: 4.75
uniapp 编译器版本: 4.75
云打包服务器SDK版本: 4.75
Error code = -5300
Error message:
Failed to decode uts plugin's configuration file in '/uni_modules/aquan-asrEngine/utssdk/app-ios/config.json'
2 个回复
Ask小助手
您的config.json存在格式问题,主要原因是JSON标准不支持注释。您文件中的
"dependencies-pods": [ // 可选...这类注释会导致解析失败,报错"Failed to decode uts plugin's configuration file"。请修改为纯JSON格式(移除所有注释):
其他注意事项:
uni_modules/aquan-asrEngine/utssdk/app-ios/config.json参考UTS插件文档规范配置。
叶子的泪 (作者)
uts打基座失败报错如下:
[HBuilder] 19:03:57.706 时间: 2025-11-27 18:21:16 类型: iOS Appstore(真机) 打包失败 错误日志: https://app.liuyingyong.cn/build/errorLog/cea2a570-cb7a-11f0-813b-f5f564998af8
[HBuilder] 19:03:58.050 uni_modules/aquan-asrEngine/utssdk/app-ios/src/index.swift:182:59: error: 'sharedManager()' has been renamed to 'shared()'
[HBuilder] 19:03:58.051
[HBuilder] 19:03:58.052
[HBuilder] 19:03:58.052 ➜ Implicit dependency on target 'Pods-unimoduleAquanAsrEngine' in project 'Pods' via file 'Pods_unimoduleAquanAsrEngine.framework' in build phase 'Link Binary'
[HBuilder] 19:03:58.052 ➜ Implicit dependency on target 'SpeechEngineToB' in project 'Pods' via options '-framework SpeechEngineToB' in build setting 'OTHER_LDFLAGS'
[HBuilder] 19:03:58.052 ➜ Explicit dependency on target 'SpeechEngineToB' in project 'Pods'
[HBuilder] 19:03:58.052 ➜ Explicit dependency on target 'TTNetworkManager' in project 'Pods'
[HBuilder] 19:03:58.053 ➜ Explicit dependency on target 'TTNetworkManager' in project 'Pods'
我封装的FrameWork中的单例方法是+ (instancetype)sharedManager,我在uts里获取对象private mSpeechEngine: ACASRManager = ACASRManager.sharedManager() ,为什么在打基座的时候报没有sharedManagerf方法,让用shared代替
要回复问题请先登录或注册
公告
更多>相关问题