用户2994187
用户2994187
  • 发布:55 分钟前
  • 更新:34 分钟前
  • 阅读:20

【报Bug】云打包时常报错,需要重新提交多次云打包才能打包成功

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 26.3 (25D125)

HBuilderX类型: 正式

HBuilderX版本号: 5.08

手机系统: iOS

手机系统版本号: iOS 26

手机厂商: 苹果

手机机型: Iphone 16

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

提交IOS云打包时常报错,需要重新提交多次云打包才能打包成功

预期结果:

打包成功

实际结果:

[HBuilder] 17:17:34.792 项目 MarooChatApp [UNIBB5E4A1]的打包状态:
[HBuilder] 17:17:34.792 时间: 2026-05-15 17:15:29 类型: iOS Appstore 打包失败 错误日志: https://app.liuyingyong.cn/build/errorLog/9c04eef0-503e-11f1-867a-d7c53ef45c0f
[HBuilder] 17:17:34.947 Analyzing dependencies
[HBuilder] 17:17:34.948 [!] CocoaPods could not find compatible versions for pod "BytePlusRTC":
[HBuilder] 17:17:34.948 In Podfile:
[HBuilder] 17:17:34.948 BytePlusRTC (= 3.60.103.5600)
[HBuilder] 17:17:34.948
[HBuilder] 17:17:34.948 None of your spec sources contain a spec satisfying the dependency: BytePlusRTC (= 3.60.103.5600).
[HBuilder] 17:17:34.948
[HBuilder] 17:17:34.948 You have either:
[HBuilder] 17:17:34.948 out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
[HBuilder] 17:17:34.948
mistyped the name or version.
[HBuilder] 17:17:34.948 not added the source repo that hosts the Podspec to your Podfile.
[HBuilder] 17:17:34.948
[HBuilder] 17:17:34.948
[HBuilder] 17:17:35.201 Analyzing dependencies
[HBuilder] 17:17:35.201 [!] CocoaPods could not find compatible versions for pod "BytePlusRTC":
[HBuilder] 17:17:35.201 In Podfile:
[HBuilder] 17:17:35.201 BytePlusRTC (= 3.60.103.5600)
[HBuilder] 17:17:35.201
[HBuilder] 17:17:35.201 None of your spec sources contain a spec satisfying the dependency: BytePlusRTC (= 3.60.103.5600).
[HBuilder] 17:17:35.201
[HBuilder] 17:17:35.201 You have either:
[HBuilder] 17:17:35.201
out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
[HBuilder] 17:17:35.201 mistyped the name or version.
[HBuilder] 17:17:35.201
not added the source repo that hosts the Podspec to your Podfile.
[HBuilder] 17:17:35.201

bug描述:

云打包时常报错,需要重新提交多次云打包才能打包成功
[HBuilder] 17:17:34.792 项目 MarooChatApp [UNIBB5E4A1]的打包状态:
[HBuilder] 17:17:34.792 时间: 2026-05-15 17:15:29 类型: iOS Appstore 打包失败 错误日志: https://app.liuyingyong.cn/build/errorLog/9c04eef0-503e-11f1-867a-d7c53ef45c0f
[HBuilder] 17:17:34.947 Analyzing dependencies
[HBuilder] 17:17:34.948 [!] CocoaPods could not find compatible versions for pod "BytePlusRTC":
[HBuilder] 17:17:34.948 In Podfile:
[HBuilder] 17:17:34.948 BytePlusRTC (= 3.60.103.5600)
[HBuilder] 17:17:34.948
[HBuilder] 17:17:34.948 None of your spec sources contain a spec satisfying the dependency: BytePlusRTC (= 3.60.103.5600).
[HBuilder] 17:17:34.948
[HBuilder] 17:17:34.948 You have either:
[HBuilder] 17:17:34.948 out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
[HBuilder] 17:17:34.948
mistyped the name or version.
[HBuilder] 17:17:34.948 not added the source repo that hosts the Podspec to your Podfile.
[HBuilder] 17:17:34.948
[HBuilder] 17:17:34.948
[HBuilder] 17:17:35.201 Analyzing dependencies
[HBuilder] 17:17:35.201 [!] CocoaPods could not find compatible versions for pod "BytePlusRTC":
[HBuilder] 17:17:35.201 In Podfile:
[HBuilder] 17:17:35.201 BytePlusRTC (= 3.60.103.5600)
[HBuilder] 17:17:35.201
[HBuilder] 17:17:35.201 None of your spec sources contain a spec satisfying the dependency: BytePlusRTC (= 3.60.103.5600).
[HBuilder] 17:17:35.201
[HBuilder] 17:17:35.201 You have either:
[HBuilder] 17:17:35.201
out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
[HBuilder] 17:17:35.201 mistyped the name or version.
[HBuilder] 17:17:35.201
not added the source repo that hosts the Podspec to your Podfile.
[HBuilder] 17:17:35.201

55 分钟前 负责人:无 分享
已邀请:
Ask小助手

Ask小助手

作为DCloud官方人员,我对这个bug反馈进行评审如下:

一、反馈内容完整性分析

这个反馈在完整性方面存在一些不足:

缺少的关键信息:

  • 配置文件示例缺失:没有提供manifest.json中相关的App配置或插件配置,无法判断BytePlusRTC是在哪个插件或配置中引入的
  • 复现步骤不够具体:仅说明"提交iOS云打包时常报错",没有说明项目使用了哪些插件(特别是哪个插件依赖了BytePlusRTC),这让我很难在本地或云端环境复现此问题
  • 错误日志链接:虽然提供了链接,但作为官方人员我无法直接访问外部链接,建议将关键错误信息直接贴在反馈中(这个反馈中已经包含了核心错误信息,这部分做得不错)

内容完整性评价:

  • BUG描述:重复了错误日志内容,但没有说明项目结构、使用了哪些插件等背景信息
  • 代码示例:完全缺失,需要提供manifest.json和项目目录结构
  • 复现步骤:描述过于简单,缺乏可操作性
  • 预期结果与实际结果:表述清晰
  • 分类信息:较为完整,包含了版本号和平台信息

二、Bug是否成立

根据知识库中的信息,这个bug从技术角度来说不完全成立,更准确地说是一个云端编译环境限制导致的已知问题

依据说明:

  1. 知识库中明确指出了类似问题的根本原因: 云打包无法适配IOS26 中提到,目前云打包环境为 XCode 16.1 / iOS SDK 18.1,而BytePlusRTC 3.60.103.5600可能是需要更高版本iOS SDK才能编译通过的新版本。

  2. CocoaPods依赖找不到的问题,在uts插件文档中有明确说明: 找不到指定版本的 pod 库,或者找不到指定依赖,错误信息和这个反馈完全一致。

  3. 这类问题的解决思路,知识库也给出了:对于需要高版本iOS SDK的源码,需要将其打包为动态库(framework),避免云端环境编译这些需要高版本iOS SDK的源码。

三、问题分析与建议

这不是最基本的概念问题,而是云端编译环境与最新iOS SDK版本不匹配导致的典型场景。反馈中提到的"需要重新提交多次才能成功"可能是因为云端服务器在某个时段恰好有缓存或者网络状况较好,导致偶然成功。

建议解决方案:

  1. 检查项目中使用的是哪个插件引入了BytePlusRTC依赖,确认该插件版本是否与当前云端编译环境兼容

  2. 如果是自己集成的第三方SDK,建议按照知识库中的方案: 云打包无法适配IOS26,将需要高版本iOS SDK的源码打包为动态库

  3. 关注HBuilderX的版本更新日志,后续我们会升级云端打包环境的iOS SDK版本

  4. 建议到专业群咨询: uni-app 官方技术交流群 1,群中有专业的管理员可以协助排查具体原因

对于用户来说,建议补充以下信息以便我们进一步分析:

  • 项目中使用了哪些插件(特别是涉及RTC相关的插件)
  • manifest.json中相关的App配置
  • 项目目录结构,特别是uni_modules下涉及RTC的部分
内容为 AI 生成,仅供参考
用户2994187

用户2994187 (作者)

我自己开发的插件,是不是你们 CocoaPods 镜像 spec 源 不稳定,每次因为在做原生代码的开发,打的包也超过了250MB,即使买了企业打包机器,现在每次打包尝试都要花费10元的,我看即使打包失败了也在扣钱?有什么解决办法吗,不可能每次都要重试才能打包,这太扯了。

要回复问题请先登录注册