xcode 在提交到 App Store 时发现意外的 Mach-O 标头代码:0x72613c21

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34670545/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:23:55  来源:igfitidea点击:

Found an unexpected Mach-O header code: 0x72613c21 on submitting to App Store

iosxcode

提问by Alan Campos

I know there are a lot of possible solutions but none of them have worked for me so far. I am using a framework called Alamofire.framework and Kingfisher.framework. I built an iOS App which I would like to submit to AppStore. I archived it and then I come in the Archives window and click "Upload to App Store".

我知道有很多可能的解决方案,但到目前为止,没有一个对我有用。我正在使用一个名为 Alamofire.framework 和 Kingfisher.framework 的框架。我构建了一个 iOS 应用程序,我想将它提交给 AppStore。我将它存档,然后进入“存档”窗口并单击“上传到 App Store”。

The following error occurs: "Found an unexpected Mach-O header code: 0x72613c21" with the following logs:

IDEDistribution.critical.log

2016-01-08 06:00:47 +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-08 06:00:47 +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-08 06:00:47 +0000 [MT] Beginning distribution assistant for archive: UCDA, task: Validate 2016-01-08 06:00:47 +0000 [MT] Automatically selecting the only availaable distribution method 2016-01-08 06:00:47 +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for : Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/chikitin/Library/Developer/Xcode/Archives/2016-01-07/UCDA 1-7-16, 11.59 PM.xcarchive/Products/Applications/UCDA.app/Frameworks/FBSDKLoginKit.framework" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/chikitin/Library/Developer/Xcode/Archives/2016-01-07/UCDA 1-7-16, 11.59 PM.xcarchive/Products/Applications/UCDA.app/Frameworks/FBSDKLoginKit.framework" did not contain a "archived-expanded-entitlements.xcent" resource.} 2016-01-08 06:05:27 +0000 [MT] Canceled distribution assistant

IDEDistribution.verbose.log

2016-01-08 06:00:47 +0000 [MT] IDEDistributionItem init

出现以下错误:“发现意外的 Mach-O 标头代码:0x72613c21”,日志如下:

IDEDistribution.critical.log

2016-01-08 06:00:47 +0000 [MT] 无法生成分发项目,错误:Error Domain=DVTMachOErrorDomain Code=0 “Found an unexpected Mach-O header code: 0x72613c21” UserInfo={NSLocalizedDescription=Found an unexpected Mach-O 标头代码:0x72613c21,NSLocalizedRecoverySuggestion=} 2016-01-08 06:00:47 +0000 [MT] 呈现:错误域=DVTMachOErrorDomain Code=0 “发现意外的 Mach-O 标头代码:0x72613c21” UserInfo NSLocalizedDescription=发现一个意外的 Mach-O 头代码:0x72613c21,NSLocalizedRecoverySuggestion=}

IDEDistribution.standard.log

2016-01-08 06:00:47 +0000 [MT] 存档的开始分发助手:UCDA,任务:验证 2016-01-08 06:00:47 +0000 [MT] 自动选择唯一可用的分发方法 2016- 01-08 06:00:47 +0000 [MT] [可选] 未找到存档的用户权利:Error Domain=NSCocoaErrorDomain Code=4“项目在”/Users/chikitin/Library/Developer/Xcode/Archives/2016 -01-07/UCDA 1-7-16, 11.59 PM.xcarchive/Products/Applications/UCDA.app/Frameworks/FBSDKLoginKit.framework”不包含“archived-expanded-entitlements.xcent”资源。UserInfo={NSLocalizedDescription=Item at "/Users/chikitin/Library/Developer/Xcode/Archives/2016-01-07/UCDA 1-7-16, 11.59 PM.xcarchive/Products/Applications/UCDA.app/Frameworks/FBSDKLoginKit .framework”不包含“

IDEDistribution.verbose.log

2016-01-08 06:00:47 +0000 [MT] IDEDistributionItem init

I hope someone could help me with this.

我希望有人能帮我解决这个问题。

Thanks a lot!

非常感谢!

回答by Adam Mendoza

I ran into this error with a FacebookSDK framework. I removed it from the Embed frameworks list and it solved the issue. Inspect the log and find the framework causing the error.

我在使用 FacebookSDK 框架时遇到了这个错误。我从嵌入框架列表中删除了它,它解决了这个问题。检查日志并找到导致错误的框架。

回答by Stan Sarr

I have the same issue with facebook SDK ... I create a bug task on facebook (bug report), the problem appears with the new SDK version . And No solution works ... If you have found a solution let us know. Thank you. I run my app without facebook connect actually.

我对 facebook SDK 有同样的问题......我在 facebook 上创建了一个错误任务(错误报告),问题出现在新的 SDK 版本上。并且没有解决方案有效......如果您找到了解决方案,请告诉我们。谢谢你。我实际上在没有 facebook 连接的情况下运行我的应用程序。

回答by Kobkrit Viriyayudhakorn

You need to remove any Frameworks' related files in the "Copy Bundle Resources” in the build phases. Please see https://kobkrit.com/how-to-fix-found-an-unexpected-mach-o-header-code-0x72613c21-on-submitting-to-app-store-7d5b8ec180c

您需要在构建阶段的“复制捆绑资源”中删除任何与框架相关的文件。请参阅https://kobkrit.com/how-to-fix-found-an-unexpected-mach-o-header-code -0x72613c21-on-submitting-to-app-store-7d5b8ec180c

回答by itzo

Remove any frameworks or folders with frameworks from Build Phases ->Copy Bundle Resources:

Build Phases -> Copy Bundle Resources 中删除任何框架或带有框架的文件夹:

enter image description here

在此处输入图片说明

This solved the error for me!

这为我解决了错误!