【发布时间】:2018-09-21 14:10:11
【问题描述】:
我已归档我的应用并希望上传 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 - 主应用程序
MyAppEmbeddded - 嵌入式框架
MyAppShare - 共享扩展
MyApp、MyAppEmbedded 和 MyAppShare 使用 Carthage 和 CocoaPods。
这是 MyApp “嵌入式二进制文件”和“链接框架和库”
这是 MyAppEmbedded “链接框架和库”
这是 MyAppShare “链接框架和库”
CFBundleIdentifier 发生冲突错误“Alamofire”、“AlamofireImage”和“SwiftyJSON”。
MyAppEmbedded 使用这三个框架。
所以,我认为 Embedded Framework 是有原因的。
另外,我注意到 ipa 的内容很奇怪。
嵌入式框架包括三个相同的嵌入式框架。
我阅读了一些关于上传错误的问题并检查了构建设置。
MyApp:“始终嵌入 Swift 标准库”是 YES
MyAppEmedded 和 MyAppShare:“始终嵌入 Swift 标准库”是不行的
如果您知道此错误,请告诉我。
【问题讨论】:
标签: ios xcode app-store-connect carthage