IOS引用某些第三方包本地编译失败在uni-app云打包自定义基座成功自定义基座无法正常打开
IOS引用某些第三方包本地编译失败在uni-app云打包自定义基座成功自定义基座无法正常打开
| 开发环境 | 版本号 | 项目创建方式 |
|---|---|---|
| Mac | macOS Sequoia 15.6.1 | HBuilderX |
产品分类:uniapp/App
PC开发环境操作系统:Mac
PC开发环境操作系统版本号:macOS Sequoia 15.6.1
HBuilderX类型:正式
HBuilderX版本号:4.75
手机系统:iOS
手机系统版本号:iOS 12.3
手机厂商:苹果
手机机型:iPhone SE
页面类型:vue
vue版本:vue2
打包方式:云端
项目创建方式:HBuilderX
示例代码:
{
"frameworks":[
],
"deploymentTarget": "13.0",
"dependencies-pod-sources": [
"https://github.com/TuyaInc/TuyaPublicSpecs.git",
"https://github.com/CocoaPods/Specs.git",
"https://github.com/tuya/tuya-pod-specs.git",
"https://cdn.cocoapods.org/"
],
"dependencies-pods": [
{
"name": "ThingSmartCryption",
"repo":
{
"git": "https://LiLSun:445d60b7de882706232438bdd37b3424@gitee.com/LiLSun/thing-smart-cryption-l.git"
}
},
{
"name": "ThingSmartHomeKit",
"version": "6.4.0.1"
},
{
"name": "ThingSmartBusinessExtensionKit",
"version": "6.4.0.1"
}
]
}
上方是可以运行的config.json
加上一些包 比如下方这个
{
"name": "ThingSmartPanelBizBundle",
"version": "6.2.1.9"
}
他就会报错
操作步骤:
- 新建一个项目
- 创建uts插件 LZ-Tyapi
- 新增ios的config.json
- 输入
{
"frameworks":[
],
"deploymentTarget": "12.0",
"dependencies-pod-sources": [
"https://github.com/TuyaInc/TuyaPublicSpecs.git",
"https://github.com/CocoaPods/Specs.git",
"https://github.com/tuya/tuya-pod-specs.git",
"https://cdn.cocoapods.org/"
],
"dependencies-pods": [
{
"name": "ThingSmartCryption",
"repo":
{
"git": "https://LiLSun:445d60b7de882706232438bdd37b3424@gitee.com/LiLSun/thing-smart-cryption-l.git"
}
},
{
"name": "ThingSmartHomeKit",
"version": "6.4.0.1"
},
{
"name": "ThingSmartBusinessExtensionKit",
"version": "6.4.0.1"
},
{
"name": "ThingSmartPanelBizBundle",
"version": "6.2.1.9"
}
]
}
- 保存编译失败
- 报错
15:48:27.878 开始编译插件 LZ-Tyapi 15:49:51.991 uts插件[LZ-Tyapi]编译失败 15:49:51.994 编译uts插件动态库错误 at /var/folders/4b/73l1z74x6jg2077gf4qkfbvc0000gn/T/uts_plugin_iOS_build_tmp/unimoduleLZTyapi_build.log:1
- 报错
更多关于IOS引用某些第三方包本地编译失败在uni-app云打包自定义基座成功自定义基座无法正常打开的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复
更多关于IOS引用某些第三方包本地编译失败在uni-app云打包自定义基座成功自定义基座无法正常打开的实战教程也可以访问 https://www.itying.com/category-93-b0.html
{
“name”: “ThingSmartPanelBizBundle”,
“version”: “6.2.1.9”
}
错误的包是这个才对

