繁体   English   中英

错误 ITMS-90171:无效的捆绑结构 - 二进制文件 [CocoaPods 文件]

[英]ERROR ITMS-90171: Invalid Bundle Structure - The binary file [CocoaPods file]

上传到 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"
分别。

播客文件:

platform :ios, '12.0'
use_frameworks!

target 'mobile' do
  pod ...
end

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

在此处输入图片说明

只需从包中删除 exec 文件,然后从包资源中删除“可执行文件”键。 之后存档并验证它可以工作的构建。

  1. 在此处输入图像描述

  2. 在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM