uts插件[uni-usercapturescreen]编译失败
14:16:49.163 error: uni_modules/uni-usercapturescreen/utssdk/app-ios/src/index.swift:16:20: error: 找不到名称“utsSubscriptGetValue”。
14:16:49.163 error: uni_modules/uni-usercapturescreen/utssdk/app-ios/src/index.swift:21:38: error: cannot find 'utsSubscriptCheckValueIfPresent' in scope
14:16:49.163 error: value of type 'UTSJSONObject' has no subscripts
14:16:49.163 at uni_modules/uni-usercapturescreen/utssdk/interface.uts:8:2
14:16:49.163 6 | 截屏文件路径(仅Android返回)
14:16:49.163 7 | /
14:16:49.163 8 | path ?: string
14:16:49.163 | ^
14:16:49.163 9 | }
14:16:49.163 10 |
14:16:49.163 error: uni_modules/uni-usercapturescreen/utssdk/app-ios/src/index.swift:45:20: error: cannot find 'utsSubscriptGetValue' in scope
14:16:49.163 error: uni_modules/uni-usercapturescreen/utssdk/app-ios/src/index.swift:74:20: error: cannot find 'utsSubscriptGetValue' in scope
14:16:49.163 error: uni_modules/uni-usercapturescreen/utssdk/app-ios/src/index.swift:79:40: error: cannot find 'utsSubscriptCheckValue' in scope
14:16:49.163 error: uni_modules/uni-usercapturescreen/utssdk/app-ios/src/index.swift:81:41: error: cannot find 'utsSubscriptCheckValueIfPresent' in scope
14:16:49.163 error: uni_modules/uni-usercapturescreen/utssdk/app-ios/src/index.swift:83:38: error: cannot find 'utsSubscriptCheckValueIfPresent' in scope
14:16:49.163 error: uni_modules/uni-usercapturescreen/utssdk/app-ios/src/index.swift:85:42: error: cannot find 'utsSubscriptCheckValueIfPresent' in scope
14:16:49.163 error: value of type 'UTSJSONObject' has no subscripts
14:16:49.163 at uni_modules/uni-usercapturescreen/utssdk/interface.uts:50:2
9***@qq.com
- 发布:2026-10-22 14:21
- 更新:2026-10-23 16:33
- 阅读:238
2 个回复
DCloud_iOS_LZY
1、使用mac 下载最新版1.0.8 导入项目能够正常编译,使用,无法复现编译报错。
2、请确认你的编译环境,必须是mac, xcode 26 及以上,项目名称不要存在空格等非法字符。
3、可以选择清空缓存的方式重新编译运行。
DCloud_iOS_LZY
另外可以尝试在hx -> 工具 -> 插件安装 -> 卸载已经安装的uts开发拓展-iOS 插件 ,然后重新运行,会自动重新安装uts开发拓展-iOS 插件