在Xcode 7中发现了一个意想不到的Mach-O头码:0x72613c21 [英] Found an unexpected Mach-O header code: 0x72613c21 in Xcode 7

查看:519
本文介绍了在Xcode 7中发现了一个意想不到的Mach-O头码:0x72613c21的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用ObjC动态框架的Swift项目,该框架必须与我的项目相关联并嵌入到我的项目中。该项目在设备中运行正常,当提交到App Store时,验证期间发生错误:
发现意外的Mach-O头码:0x72613c21



以下是验证日志:

  2015-10-12 02:32: 33 +0000 [MT]开始分发助理档案:MusicFans,任务:验证
2015-10-12 02:32:33 +0000 [MT]自动选择唯一可用的分发方法< IDEDistributionMethodiOSAppStoreValidation:0x7f851c1d96c0>
2015-10-12 02:32:34 +0000 [MT] [可选]没有找到< DVTFilePath:0x7f851b42db10的归档用户权利:'/ Users / panzhansheng / Library / Developer / Xcode / Archives / 2015-10-11 / MusicFans 11-10-15上午8.29.xcarchive / Products / Applications / MusicFans.app / Frameworks / libswiftDispatch.dylib'> ;: Error Domain = NSCocoaErrorDomain Code = 4Item at/ Users / panzhansheng /图书馆/开发人员/ Xcode / Archives / 2015-10-11 / MusicFans 11-10-15上午8.29.xcarchive / Products / Applications / MusicFans.app / Frameworks / libswiftDispatch.dylib不包含归档扩展权利。 xcent资源。 UserInfo = {NSLocalizedDescription = Item at/ Users / panzhansheng / Library / Developer / Xcode / Archives / 2015-10-11 / MusicFans 11-10-15上午8.29.xcarchive / Products / Applications / MusicFans.app / Frameworks / libswiftDispatch。 dylib没有包含archived-expanded-grantlements.xcent资源。}
2015-10-12 02:32:34 +0000 [MT] [可选]没有找到< DVTFilePath:0x7f8529a08050:'/ Users / panzhansheng / Library / Developer / Xcode / Archives / 2015-10-11 / MusicFans 11-10-15上午8.29.xcarchive / Products / Applications / MusicFans.app / wavpack.framework'> ;: Error Domain = NSCocoaErrorDomain Code = 4Item at/ Users / panzhansheng / Library / Developer / Xcode / Archives / 2015-10-11 / MusicFans 11-10-15上午8.29.xcarchive / Products / Applications / MusicFans.app / wavpack .framework没有包含archived-expanded-grantlements.xcent资源。 UserInfo = {NSLocalizedDescription = Item at/ Users / panzhansheng / Library / Developer / Xcode / Archives / 2015-10-11 / MusicFans 11-10-15上午8.29.xcarchive / Products / Applications / MusicFans.app / wavpack.framework没有包含archived-expanded-grantlements.xcent资源。}
2015-10-12 02:32:34 +0000 [MT] [可选]没有找到< DVTFilePath的归档用户权利: 0x7f850da13de0:'/ Users / panzhansheng / Library / Developer / Xcode / Archives / 2015-10-11 / MusicFans 11-10-15上午8.29.xcarchive / Products / Applications / MusicFans.app / FLAC.framework'> ;:错误域= NSCocoaErrorDomain Code = 4Item at/ Users / panzhansheng / Library / Developer / Xcode / Archives / 2015-10-11 / MusicFans 11-10-15上午8.29.xcarchive / Products / Applications / MusicFans.app / FLAC.framework 没有包含归档扩展权益.xcent资源。 UserInfo = {NSLocalizedDescription = Item at/ Users / panzhansheng / Library / Developer / Xcode / Archives / 2015-10-11 / MusicFans 11-10-15上午8.29.xcarchive / Products / Applications / MusicFans.app / FLAC.framework没有包含archived-expanded-grantlements.xcent资源。}
2015-10-12 02:33:07 +0000 [MT]已取消的分销助理
/ pre>

如果我从项目的嵌入式框架部分删除动态框架,那么它可以传递验证,但是在设备中运行时会崩溃,因为我的动态框架,任何想法?
BTW,动态框架禁用了位代码,所以我的项目也禁用了位代码,并没有被编码。

解决方案

双检查构建阶段 - >复制包资源以获取框架或其他二进制文件。



在我的情况下,它是第三方库(Parse)我补充说。


I have a Swift project that uses a ObjC dynamic framework, the framework had to be linked with and embedded into my project. The project runs OK in devices, when submitted to App Store, the error occurred during validation: Found an unexpected Mach-O header code: 0x72613c21

Below are the validation logs:

2015-10-12 02:32:33 +0000 [MT] Beginning distribution assistant for archive: MusicFans, task: Validate
2015-10-12 02:32:33 +0000 [MT] Automatically selecting the only availaable distribution method <IDEDistributionMethodiOSAppStoreValidation: 0x7f851c1d96c0>
2015-10-12 02:32:34 +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7f851b42db10:'/Users/panzhansheng/Library/Developer/Xcode/Archives/2015-10-11/MusicFans 11-10-15 上午8.29.xcarchive/Products/Applications/MusicFans.app/Frameworks/libswiftDispatch.dylib'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/panzhansheng/Library/Developer/Xcode/Archives/2015-10-11/MusicFans 11-10-15 上午8.29.xcarchive/Products/Applications/MusicFans.app/Frameworks/libswiftDispatch.dylib" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/panzhansheng/Library/Developer/Xcode/Archives/2015-10-11/MusicFans 11-10-15 上午8.29.xcarchive/Products/Applications/MusicFans.app/Frameworks/libswiftDispatch.dylib" did not contain a "archived-expanded-entitlements.xcent" resource.}
2015-10-12 02:32:34 +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7f8529a08050:'/Users/panzhansheng/Library/Developer/Xcode/Archives/2015-10-11/MusicFans 11-10-15 上午8.29.xcarchive/Products/Applications/MusicFans.app/wavpack.framework'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/panzhansheng/Library/Developer/Xcode/Archives/2015-10-11/MusicFans 11-10-15 上午8.29.xcarchive/Products/Applications/MusicFans.app/wavpack.framework" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/panzhansheng/Library/Developer/Xcode/Archives/2015-10-11/MusicFans 11-10-15 上午8.29.xcarchive/Products/Applications/MusicFans.app/wavpack.framework" did not contain a "archived-expanded-entitlements.xcent" resource.}
2015-10-12 02:32:34 +0000 [MT] [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7f850da13de0:'/Users/panzhansheng/Library/Developer/Xcode/Archives/2015-10-11/MusicFans 11-10-15 上午8.29.xcarchive/Products/Applications/MusicFans.app/FLAC.framework'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/panzhansheng/Library/Developer/Xcode/Archives/2015-10-11/MusicFans 11-10-15 上午8.29.xcarchive/Products/Applications/MusicFans.app/FLAC.framework" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/panzhansheng/Library/Developer/Xcode/Archives/2015-10-11/MusicFans 11-10-15 上午8.29.xcarchive/Products/Applications/MusicFans.app/FLAC.framework" did not contain a "archived-expanded-entitlements.xcent" resource.}
2015-10-12 02:33:07 +0000 [MT] Canceled distribution assistant

If I remove the dynamic framework from the project’s Embedded frameworks section, then it can pass the validation, but crashes when run in devices due to the missing image of my dynamic framework, any idea? BTW, dynamic framework has bitcode disabled, so my project also disables bitcode, and is not codesigned.

解决方案

Double check Build Phases -> Copy Bundle Resources for a framework or other binary that shoundn't be there.

In my case, it was a 3rd party library (Parse) that I had added.

这篇关于在Xcode 7中发现了一个意想不到的Mach-O头码:0x72613c21的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆