使用 FBSDKCoreKit.framework 在 Xcode10 中发现意外的 Mach-O 标头代码:0x72613c21 [英] Found an unexpected Mach-O header code: 0x72613c21 in Xcode10 with FBSDKCoreKit.framework

查看:49
本文介绍了使用 FBSDKCoreKit.framework 在 Xcode10 中发现意外的 Mach-O 标头代码:0x72613c21的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用最新版本的 FacebookSDK 和 Xcode 10 的项目,该项目在设备上运行正常,但在提交到 App Store 时,在验证期间出现以下错误:

<块引用>

发现意外的 Mach-O 标头代码:0x72613c21.

日志显示:

<块引用>

2019-02-04 11:58:57 +0000 [可选] 未找到存档的用户权利:Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/rodrigovalles/Library/Developer/Xcode/Archives/2019-02-04/AlquilaTuCancha 4-2-19 08.56.xcarchive/Products/Applications/AlquilaTuCancha.app/assets/FBSDKCoreKit.framework"不包含archived-expanded-entitlements.xcent"资源.UserInfo={NSLocalizedDescription=/Users/rodrigovalles/Library/Developer/Xcode/Archives/2019-02-04/AlquilaTuCancha 4-2-19 08.56.xcarchive/Products/Applications/AlquilaTuCancha.app/assets/FBSDKCoreKit." 不包含 "archived-expanded-entitlements.xcent" 资源.} 2019-02-04 11:59:17 +0000 [MT] 取消分发助手

我尝试从 Embed Frameworks 中删除框架并添加 Link Binary With Libraries,并更改框架的 Mach-O 类型.但错误并没有消失

解决方案

我今天在不使用 CocoaPods 的情况下手动将 FacebookSDK 添加到 iOS 项目时遇到了这个问题.

我假设您已

I have a project using the latest version of the FacebookSDK and Xcode 10, the project runs OK in devices, but when submitting to the App Store, during during validation the following error occurs:

Found an unexpected Mach-O header code: 0x72613c21.

The log shows:

2019-02-04 11:58:57 +0000 [OPTIONAL] Didn't find archived user entitlements for : Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/rodrigovalles/Library/Developer/Xcode/Archives/2019-02-04/AlquilaTuCancha 4-2-19 08.56.xcarchive/Products/Applications/AlquilaTuCancha.app/assets/FBSDKCoreKit.framework" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/rodrigovalles/Library/Developer/Xcode/Archives/2019-02-04/AlquilaTuCancha 4-2-19 08.56.xcarchive/Products/Applications/AlquilaTuCancha.app/assets/FBSDKCoreKit.framework" did not contain a "archived-expanded-entitlements.xcent" resource.} 2019-02-04 11:59:17 +0000 [MT] Canceled distribution assistant

I have tried deleting frameworks from Embed Frameworks and adding in Link Binary With Libraries, and changing the Mach-O type of the framework. But the error isn't gone

解决方案

I came across this issue today while adding the FacebookSDK to an iOS project manually, without using CocoaPods.

I am assuming you have downloaded the SDK directly from Facebook.

The Facebook frameworks are static frameworks (not dynamic) so the correct way to integrate them is to include each framework in the "Link Binaries With Libraries" build Build Phase for your target, but nowhere else. Do not add them to the Embed Frameworks step.

这篇关于使用 FBSDKCoreKit.framework 在 Xcode10 中发现意外的 Mach-O 标头代码:0x72613c21的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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