当前位置:  开发笔记 > 后端 > 正文

提交到AppStore:发现一个意外的Mach-O头代码:0x72613c21

如何解决《提交到AppStore:发现一个意外的Mach-O头代码:0x72613c21》经验,为你挑选了1个好方法。

我建立了一个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 
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 
2016-01-07 9:23:21 AM +0000 [MT] [OPTIONAL] Can't have a profile, not a bundle at 
2016-01-07 9:23:21 AM +0000 [MT] IDEDistributionItem init 

我知道StackOverflow上有很多关于这个的问题,有不同的解决方案,但到目前为止它们都没有对我有用.我在我的应用程序中使用CocoaPods,还有另一个名为CrashReporter.framework的框架用于QuincyKit.

我希望有人可以帮助我.



1> Albert Bori..:

尝试嵌入CrashReporter框架时,我也遇到了这个错误.事实证明,你不应该嵌入框架.相反,只需将其添加到"链接的框架和库"即可.这为我解决了这个问题.

推荐阅读
我我檬檬我我186
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有