ERROR ITMS-90171: 无效的包结构 - 二进制文件[CocoaPods文件]

9
上传到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
2个回答

17

我需要在下面所示的嵌入框架中删除Pods_mobile.framework。我不确定它是怎么出现的,但是因为我一开始没有添加它,所以认为它有其目的。

enter image description here


3
确认这对我有效。谢谢。在新版本的Xcode中,设置略有不同。现在,在Xcode的“常规选项卡”的“框架、库和嵌入内容”部分下,应选择“不嵌入(Do Not Embed)”。 - Scott D
你真是个救命稻草。 - Logic

0

只需从捆绑包中删除执行文件,并从捆绑包资源中删除“可执行文件”键。之后进行归档和验证构建,它就可以工作了。

  1. enter image description here

  2. enter image description here


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接