我构建了一个iOS应用程序,我想提交给Apple,这样我就可以让我的同事对它进行测试。我首先清理了工作区(我正在使用CocoaPods),然后将其存档。
然后我进入Archives窗口并单击“Upload to App Store”。 发生以下错误:“找到一个意外的Mach-O标头代码:0x72613c21”,包含以下日志:
IDEDistribution.critical.log:
2016-01-07 9:23:21 AM +0000 [MT] Failed to generate distribution items with error: Error Domain=DVTMachOErrorDomain Code=0 "Found an unexpected Mach-O header code: 0x72613c21" UserInfo={NSLocalizedDescription=Found an unexpected Mach-O header code: 0x72613c21, NSLocalizedRecoverySuggestion=}
2016-01-07 9:23:21 AM +0000 [MT] Presenting: Error Domain=DVTMachOErrorDomain Code=0 "Found an unexpected Mach-O header code: 0x72613c21" UserInfo={NSLocalizedDescription=Found an unexpected Mach-O header code: 0x72613c21, NSLocalizedRecoverySuggestion=}
IDEDistribution.standard.log:
2016-01-07 9:23:21 AM +0000 [MT] Beginning distribution assistant for archive: AppName, task: Upload
2016-01-07 9:23:21 AM +0000 [MT] Automatically selecting the only availaable distribution method <IDEDistributionMethodiOSAppStoreDistribution: 0x7fb7816c36a0>
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb78240a060:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/Eureka.framework'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/Eureka.framework" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/Eureka.framework" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb77ca3fc80:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftContacts.dylib'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftContacts.dylib" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftContacts.dylib" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb78126ea00:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftDarwin.dylib'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftDarwin.dylib" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftDarwin.dylib" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb78240f980:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/KeychainSwift.framework'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/KeychainSwift.framework" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/KeychainSwift.framework" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb780c858a0:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftCore.dylib'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftCore.dylib" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftCore.dylib" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb7822537e0:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/SDCAlertView.framework'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/SDCAlertView.framework" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/SDCAlertView.framework" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb780c9d520:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftDispatch.dylib'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftDispatch.dylib" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftDispatch.dylib" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb77cac4420:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftCoreImage.dylib'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftCoreImage.dylib" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftCoreImage.dylib" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb77cad5570:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftUIKit.dylib'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftUIKit.dylib" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftUIKit.dylib" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb78126e6a0:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftObjectiveC.dylib'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftObjectiveC.dylib" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftObjectiveC.dylib" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb78179c400:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/Alamofire.framework'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/Alamofire.framework" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/Alamofire.framework" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb78220caa0:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/ReachabilitySwift.framework'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/ReachabilitySwift.framework" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/ReachabilitySwift.framework" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb780c9e720:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/SwiftyJSON.framework'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/SwiftyJSON.framework" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/SwiftyJSON.framework" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb77cace260:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftFoundation.dylib'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftFoundation.dylib" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftFoundation.dylib" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fb7820fa200:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/CrashReporter.framework/Versions/A'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/CrashReporter.framework/Versions/A" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/CrashReporter.framework/Versions/A" did not contain a "archived-expanded-entitlements.xcent" resource.}
2016-01-07 9:23:36 AM +0000 [MT] Canceled distribution assistant
IDEDistribution.verbose.log
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb78240a060:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/Eureka.framework'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb77ca3fc80:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftContacts.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at <DVTFilePath:0x7fb77ca3fc80:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftContacts.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb78126ea00:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftDarwin.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at <DVTFilePath:0x7fb78126ea00:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftDarwin.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb78240f980:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/KeychainSwift.framework'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb780c858a0:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftCore.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at <DVTFilePath:0x7fb780c858a0:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftCore.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb7822537e0:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/SDCAlertView.framework'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb780c9d520:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftDispatch.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at <DVTFilePath:0x7fb780c9d520:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftDispatch.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb77cac4420:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftCoreImage.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at <DVTFilePath:0x7fb77cac4420:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftCoreImage.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb77cad5570:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftUIKit.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at <DVTFilePath:0x7fb77cad5570:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftUIKit.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb78126e6a0:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftObjectiveC.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at <DVTFilePath:0x7fb78126e6a0:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftObjectiveC.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb78179c400:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/Alamofire.framework'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb78220caa0:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/ReachabilitySwift.framework'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb780c9e720:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/SwiftyJSON.framework'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb77cace260:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftFoundation.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at <DVTFilePath:0x7fb77cace260:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/libswiftFoundation.dylib'>
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init <DVTFilePath:0x7fb7820fa200:'/Users/MyUsername/Library/Developer/Xcode/Archives/2016-01-07/AppName 07-01-16 10.22 AM.xcarchive/Products/Applications/AppName.app/Frameworks/CrashReporter.framework/Versions/A'>
我知道在StackOverflow上有很多关于这个问题的问题有不同的解决方案,但到目前为止它们都没有对我有用。 我在我的应用程序中使用CocoaPods,还有另一个名为CrashReporter.framework的框架用于QuincyKit。
我希望有人可以帮助我。
答案 0 :(得分:5)
我在尝试嵌入CrashReporter框架时也遇到了这个错误。事实证明,你不应该嵌入框架。相反,只需将其添加到您的&#34;链接框架和库&#34;。这为我解决了这个问题。
答案 1 :(得分:2)
检查您没有Embed & Sign
-ing 任何静态框架。
检查您没有在依赖项(如框架或扩展)中Embed & Sign
-ing 任何框架。
干杯
答案 2 :(得分:1)
就我而言,这是Crashlytics.framework
我必须将其从 General-&gt; EmbeddedBinaries 中删除,并且仅将其移至 General-&gt;
一般来说,当你有这个窗口时,要检索错误:
点击显示日志
您将找到3个日志文件:
就我而言,在 IDEDistribution.standard.log 中,取消分发助手之前的行帮助我找到了问题:
2018-01-12 13:58:55 +0000 [可选]未找到存档用户 权利 : 错误域= NSCocoaErrorDomain代码= 4&#34;项目位于 &#34; /用户/ kevinabrioux /库/开发商/ Xcode中/存档/ 2018年1月12日/ Eyelights 2018年12月1日 14.57.xcarchive /产品/应用/ Eyelights.app /框架/ Crashlytics.framework&#34; 不包含&#34; archived-expanded-entitmentments.xcent&#34; 。资源#&34; UserInfo = {NSLocalizedDescription = Item at &#34; /用户/ kevinabrioux /库/开发商/ Xcode中/存档/ 2018年1月12日/ Eyelights 2018年12月1日 14.57.xcarchive /产品/应用/ Eyelights.app /框架/的 Crashlytics.framework&#34; 强> 不包含&#34; archived-expanded-entitmentments.xcent&#34;资源。} 2018-01-12 14:13:57 +0000 [MT] 取消发布助手
答案 3 :(得分:1)
我已经解决了这个问题,这全是我的错:我链接Binary Crashlytics.framework [静态库]以及Embed Frameworks Crashlytics.framework [静态库],所以这仅仅是因为重复的引用。
因此,我认为您应该从嵌入式二进制文件部分删除Crashlytics.framework,因为您在链接的框架中有此框架链接。
在删除任何框架之前,请检查您的日志,您将看到问题所在。您可以在日志中搜索框架。
非常感谢。
答案 4 :(得分:0)
我无法真正解决问题,但是通过从我的应用程序中删除CrashReporter框架和QuincyKit_CrashReporter-library,我得到了错误。
这不是我希望找到的解决方案,而是及时在AppStore中获取应用程序的唯一方法。
也许有一种方法可以让使用 CrashReporter框架,然后我会在这里发布。否则我会把它留下来或找另一个。
答案 5 :(得分:0)
如果您使用的是Pod,则只需做两件事。