FBSDKCoreKit的Facebook iOS8 SDK构建模块错误 [英] Facebook iOS8 SDK build module error for FBSDKCoreKit

查看:733
本文介绍了FBSDKCoreKit的Facebook iOS8 SDK构建模块错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Facebook SDK添加到Xcode中的iOS 8 Objective-C应用程序中。我根据FB-dev说明进行了安装。但是,当我将标头添加到AppDelegate.m文件时,出现无法构建模块'FBSDKCoreKit'错误。

I am trying to add the Facebook SDK to my iOS 8 Objective-C app in Xcode. I did the install according to the FB-dev instructions. However, I get a "Could not build module 'FBSDKCoreKit'" error when I add the header to my AppDelegate.m file.

#import "AppDelegate.h"
#import <FBSDKCoreKit/FBSDKCoreKit.h>

根据我在别处读到的内容

Based on what I read elsewhere


  1. 我已经清理了构建并重新安装了Xcode。

  2. 我还重新安装了Facebook SDK安装程序,并尝试将其添加到空白项目中(在如果我的应用程序有腐败的情况)。

  3. 我在说明书中仔细检查了plist和框架文件FB列表,但似乎没有任何遗漏。

我很难过。

推荐答案

由于FBSDKAppLinkResolver.h头文件中的包含框架模块内的非模块化头文件错误,无法构建FBSDKCoreKit:在 #import< Bolts / BFAppLinkResolving.h> line。

FBSDKCoreKit can't be built because of "include of non-modular header inside framework module" error in FBSDKAppLinkResolver.h header file: in #import <Bolts/BFAppLinkResolving.h> line.

来自 Swift编译器错误:框架模块内的非模块化标头(切换CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES)对我没有帮助。

The solution from Swift compiler error: "non-modular header inside framework module" (switching CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES) did't help me.

我的解决方案:


  1. 在Bolts.framework文件模块映射中创建:模块/模块。 modulemap(如在FBSDKCoreKit.framework中)

  2. 将此类代码放入

  1. Create in Bolts.framework file module map: Modules/module.modulemap (like in FBSDKCoreKit.framework)
  2. Put such code inside

framework module Bolts {
umbrella header "Bolts.h"

export *
module * { export * }


explicit module BFAppLinkResolver {
    header "BFAppLinkResolver.h"
    link "BFAppLinkResolver"
    export *
}}


有趣的事实是,在FBSDKCoreKit这样的方案是由Facebook实现的,为什么他们不把它应用到Bolts ......

Interesting fact is that in FBSDKCoreKit such scheme is realized by Facebook, why didn't they apply it into Bolts...

这篇关于FBSDKCoreKit的Facebook iOS8 SDK构建模块错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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