gpt4 book ai didi

iOS 验证存档因 CFBundleIdentifier 冲突和无效包而失败

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:28:55 62 4
gpt4 key购买 nike

我存档了我的应用程序并想上传 ipa 文件。
但是,上传失败并出现这些错误。

App Store Connect Operation Error
CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value 'org.alamofire.Alamofire' under the iOS application 'MyApp.app'.

App Store Connect Operation Error
CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value 'org.alamofire.AlamofireImage' under the iOS application 'MyApp.app'.

App Store Connect Operation Error
CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value 'com.swiftyjson.SwiftyJSON' under the iOS application 'MyApp.app'.

App Store Connect Operation Error
Invalid Bundle. The bundle at 'MyApp.app/Frameworks/MyAppEmbedded.framework' contains disallowed nested bundles.

App Store Connect Operation Error
Invalid Bundle. The bundle at 'MyApp.app/Frameworks/MyAppEmbedded.framework' contains disallowed file 'Frameworks'.

App Store Connect Operation Error
Invalid Bundle. The bundle at 'MyApp.app/PlugIns/MyAppShare.appex' contains disallowed nested bundles.

App Store Connect Operation Error
Invalid Bundle. The bundle at 'MyApp.app/PlugIns/MyAppShare.appex' contains disallowed file 'Frameworks'.

项目使用Swift,但一些第三方库使用Objective-C。
这些是我的项目结构。

目标
MyApp - 主应用程序
MyAppEmbedded - 嵌入式框架
MyAppShare - 共享扩展
MyApp、MyAppEmbedded 和 MyAppShare 使用 Carthage 和 CocoaPods。
这是 MyApp“嵌入式二进制文件”和“链接框架和库”
enter image description here这是 MyAppEmbedded“链接的框架和库”
enter image description here这是 MyAppShare“链接的框架和库”
enter image description here“Alamofire”、“AlamofireImage”和“SwiftyJSON”发生 CFBundleIdentifier 冲突错误。
MyAppEmbedded 使用了这三个框架。
所以,我认为嵌入式框架是有原因的。
另外,我注意到 ipa 内容很奇怪。
嵌入式框架包括三个相同的嵌入式框架。
enter image description here

我阅读了一些关于上传错误的问题并检查了build设置。
MyApp:“始终嵌入 Swift 标准库”是 YES
MyAppEmedded 和 MyAppShare:“始终嵌入 Swift 标准库”是不行的

如果您知道这个错误,请告诉我。

最佳答案

我找到了解决方案。

我从嵌入式框架和 ShareExtension 中删除了主应用程序使用的框架。
并且可以构建我的应用程序并且可以上传验证。

我以为Embedded Framework和Extension需要包含框架,但只有主应用包含框架,其他目标也可以使用主应用包含的框架。

关于iOS 验证存档因 CFBundleIdentifier 冲突和无效包而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52445539/

62 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com