【问题标题】:ERROR ITMS-90171: Invalid Bundle Structure - The binary file [CocoaPods file]错误 ITMS-90171:无效的捆绑结构 - 二进制文件 [CocoaPods 文件]
【发布时间】:2020-03-22 11:56:56
【问题描述】:

上传到 App Store 时遇到此错误:

ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'mobile.app/Frameworks/Pods_mobile.framework/Pods_mobile' is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."

我搜索了所有类似的帖子并尝试了所有这些建议:
- 始终嵌入 Swift 标准库 = [true, false, $(inherited)]
- 构建阶段 -> 复制捆绑资源 -> 确保其没有框架
- 确保配置文件设置正确。
- 仅构建活动架构 = [true, false]

构建阶段: [CP] Embed Pods Frameworks & [CP] Copy Pods Resource 看起来很正常:
"${PODS_ROOT}/Target Support Files/Pods-mobile/Pods-mobile-frameworks.sh"
"${PODS_ROOT}/Target Support Files/Pods-mobile/Pods-mobile-resources.sh" 分别。

Podfile:

platform :ios, '12.0'
use_frameworks!

target 'mobile' do
  pod ...
end

【问题讨论】:

    标签: ios xcode cocoapods ipa app-store-connect


    【解决方案1】:

    我需要删除Embed Frameworks 下的Pods_mobile.framework,如下所示。我不确定它是如何到达那里的,但假设它有它的目的,因为我一开始没有添加它。

    【讨论】:

    • 确认这对我有用。谢谢你。新版本的 Xcode 中的设置略有不同。现在是 Xcode 中“常规选项卡”的“框架、库和嵌入式内容”部分下的“不嵌入”。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-09-08
    • 2021-05-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多