无敌骨灰盒
无敌骨灰盒
  • 发布:2025-09-12 15:54
  • 更新:2025-09-12 17:36
  • 阅读:28

【报Bug】IOS引用某些第三方包本地编译失败,云打包自定义基座成功,自定义基座无法正常打开

分类:uni-app

产品分类: 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⁠

去掉 ThingSmartPanelBizBundle 这个包后
编译通过

预期结果:

编译通过

实际结果:

报错

bug描述:

IOS使用Cocoapods的问题

引入某些包会导致编译不通过

云打包不会报错,打包成功后的自定义基座无法运行

2025-09-12 15:54 负责人:无 分享
已邀请:
无敌骨灰盒

无敌骨灰盒 (作者)

{
"name": "ThingSmartPanelBizBundle",
"version": "6.2.1.9"
}

错误的包是这个才对

要回复问题请先登录注册