5***@qq.com
5***@qq.com
  • 发布:2026-06-05 09:20
  • 更新:2026-06-05 09:21
  • 阅读:42

最近打包苹果应用,上传会失败,有没有人遇到过?

分类:uni-app

这是上传时候返回的错误日志:
2026-06-03 15:57:48 1 package(s) were not uploaded because they had problems:
/www/myblog/myblog/app/public/temp/9cAN5p-9Vlw.ipa - Error Messages:
ERROR ITMS-90171: Invalid bundle structure. The “UNI0D531A5.app/Frameworks/DCloudUTSFoundation.framework/DCloudUTSFoundation” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle
ERROR ITMS-90171: Invalid bundle structure. The “UNI0D531A5.app/Frameworks/DCUniBase.framework/DCUniBase” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle
ERROR ITMS-90725: SDK version issue. This app was built with the iOS SDK. All iOS and iPadOS apps must be built with the iOS 26 SDK or later, included in Xcode 26 or later, in order to be uploaded to App Store Connect or submitted for distribution.
2026-06-03 15:57:48 [main] ERROR: ERROR ITMS-90171: Invalid bundle structure. The “UNI0D531A5.app/Frameworks/DCloudUTSFoundation.framework/DCloudUTSFoundation” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle
2026-06-03 15:57:48 [main] ERROR: ERROR ITMS-90171: Invalid bundle structure. The “UNI0D531A5.app/Frameworks/DCUniBase.framework/DCUniBase” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle
[main] ERROR: ERROR ITMS-90725: SDK version issue. This app was built with the iOS SDK. All iOS and iPadOS apps must be built with the iOS 26 SDK or later, included in Xcode 26 or later, in order to be uploaded to App Store Connect or submitted for distribution.
2026-06-03 15:57:48 [main] DBG-X: Returning 1
2026-06-05 09:07:36 开始上传…
2026-06-05 09:08:13 [main] ERROR: ERROR ITMS-90171: Invalid bundle structure. The “UNI0D531A5.app/Frameworks/DCloudUTSFoundation.framework/DCloudUTSFoundation” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle
2026-06-05 09:08:13 [main] ERROR: ERROR ITMS-90171: Invalid bundle structure. The “UNI0D531A5.app/Frameworks/DCUniBase.framework/DCUniBase” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle
[main] ERROR: ERROR ITMS-90725: SDK version issue. This app was built with the iOS SDK. All iOS and iPadOS apps must be built with the iOS 26 SDK or later, included in Xcode 26 or later, in order to be uploaded to App Store Connect or submitted for distribution.
2026-06-05 09:08:13 1 package(s) were not uploaded because they had problems:
2026-06-05 09:08:13 /www/myblog/myblog/app/public/temp/9cAN5p-9Vlw.ipa - Error Messages:
ERROR ITMS-90171: Invalid bundle structure. The “UNI0D531A5.app/Frameworks/DCloudUTSFoundation.framework/DCloudUTSFoundation” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle
ERROR ITMS-90171: Invalid bundle structure. The “UNI0D531A5.app/Frameworks/DCUniBase.framework/DCUniBase” binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle
ERROR ITMS-90725: SDK version issue. This app was built with the iOS SDK. All iOS and iPadOS apps must be built with the iOS 26 SDK or later, included in Xcode 26 or later, in order to be uploaded to App Store Connect or submitted for distribution.
2026-06-05 09:08:13 [main] DBG-X: Returning 1

2026-06-05 09:20 负责人:无 分享
已邀请:
Ask小助手

Ask小助手 - Ask社区AI助手

欢迎到专业群( uni-app 官方技术交流群 1 ) 咨询,群中有相关专业的管理员和群友。

根据你提供的错误日志,你遇到了两个主要问题,这两个问题都是由于 Apple 2026 年 4 月的新规导致的。不过不用担心,官方团队已经意识到了这个问题并给出了解决方案。

错误分析

  1. ERROR ITMS-90725: SDK version issue
    • 原因:Apple 要求从 2026 年 4 月起,所有上架 App Store 的应用必须使用 iOS 26 SDK 或更高版本(包含在 Xcode 26 或更高版本中)进行构建。你当前使用的打包环境未达到此要求。
  2. ERROR ITMS-90171: Invalid bundle structure
    • 原因:你的 ipa 包中,DCUniBase.frameworkDCloudUTSFoundation.framework 这两个核心框架不符合新规。Apple 的新验证规则要求 App 内不能包含“独立的可执行文件或库”,这些框架可能因为是由旧版 SDK 构建的,导致了结构上的不兼容。

解决方案

根本的解决办法是升级你的 HBuilderX 到最新版本,然后重新进行云打包。

根据 DCloud 的官方发布记录,HBuilderX 5.05 及以上版本已经更新了云端打包环境,完美适配了 Apple 的新要求:

  • XCode 版本:26.3
  • iOS SDK 版本:26.2

请按以下步骤操作:

  1. 更新 HBuilderX:确保你的 HBuilderX 版本至少为 5.05 或更高。你可以在 HBuilderX 发布日志 中查看详细更新内容。
  2. 重新云打包:使用更新后的 HBuilderX 对你的项目重新进行 iOS 云打包。
  3. 再次上传:将新生成的 ipa 文件通过 Transporter 或其他工具上传到 App Store Connect。

官方已知问题

DCloud 官方已在社区确认,这是 App Store 最近调整的规则,并已经通过更新云端打包环境解决了此问题,具体可参考这个 Ask 社区的帖子:【报Bug】iOS 云打包上传到 Apple 报错:ITMS-90171 和 ITMS-90725

升级 HBuilderX 并重新打包后,问题就应该解决了。如果还有其他问题,可以随时再来问我。

内容为 AI 生成,仅供参考

要回复问题请先登录注册