找不到“FacebookSDK / FacebookSDK.h”文件 [英] 'FacebookSDK/FacebookSDK.h' file not found

查看:240
本文介绍了找不到“FacebookSDK / FacebookSDK.h”文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了最新版本的 phonegap-facebook-plugin

但是当我构建项目时,我得到了下面的错误消息。
我尝试了很多在stackoverflow和其他网站提到的没有正面结果的解决方案。

  com.phonegap.plugins.facebookconnect /FacebookConnectPlugin.m:11:
Et3arrafApp / Plugins / com.phonegap.plugins.facebookconnect / FacebookConnectPlugin.h:11:9:致命错误:
'找不到FacebookSDK / FacebookSDK.h'文件
#import< FacebookSDK / FacebookSDK.h>
^
生成了1个错误。

** BUILD FAILED **


以下构建命令失败:
CompileC build / Et3arrafApp.build / Debug-iphonesimulator / Et3arrafApp.build /Objects-normal/i386/FacebookConnectPlugin.o Et3arrafApp / Plugins / com.phonegap.plugins.facebookconnect / FacebookConnectPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1次失败)
错误:/ Users / apple / Desktop / et3arraf / platforms / ios / cordova / build:命令失败,退出代码65
在ChildProcess.whenDone(/ usr / local / lib / node_modules / cordova / node_modules / cordova-lib / src / cordova / superspawn.js:131:23)
在ChildProcess.EventEmitter.emit(events.js:98:17)
at maybeClose(child_process.js:753: 16)
在Process.ChildProcess._handle.onexit(child_process.js:820:5)




使用插件注册安装此插件不能在iOS上使用



您必须将存储库( phonegap-facebook-plugin )克隆到本地文件系统, code> $ HOME / src / phonegap-facebook-plugin 。然后安装指向该路径的插件,例如 cordova插件add $ HOME / src / phonegap-facebook-plugin
...



在通过插件注册表获取时, FacebookSDK.framework 未正确安装。它应该看起来像这样:

  $ ls -l plugins / com.phonegap.plugins.facebookconnect / platforms / ios / FacebookSDK。框架/ 
共24
lrwx ------ 1 mjl staff 24 Aug 15 15:23 FacebookSDK - > ./Versions/A/FacebookSDK
lrwx ------ 1 mjl staff 20 Aug 15 15:23标题 - > ./Versions/A/Headers
lrwx ------ 1 mjl staff 22 Aug 15 15:23资源 - > ./Versions/A/Resources
drwx ------ 4 mjl staff 136 Aug 15 15:23版本

但是通过插件注册表安装时,符号链接不会被保留...当从本地文件系统安装时它们被保留。


I already installed the latest version of phonegap-facebook-plugin But when i build the project, I got the error message below. I tried many solutions mentioned at stackoverflow and other websites with no positive result.

com.phonegap.plugins.facebookconnect/FacebookConnectPlugin.m:11:
Et3arrafApp/Plugins/com.phonegap.plugins.facebookconnect/FacebookConnectPlugin.h:11:9: fatal error:
      'FacebookSDK/FacebookSDK.h' file not found
#import <FacebookSDK/FacebookSDK.h>
        ^
1 error generated.

** BUILD FAILED **


The following build commands failed:
    CompileC build/Et3arrafApp.build/Debug-iphonesimulator/Et3arrafApp.build/Objects-normal/i386/FacebookConnectPlugin.o Et3arrafApp/Plugins/com.phonegap.plugins.facebookconnect/FacebookConnectPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: /Users/apple/Desktop/et3arraf/platforms/ios/cordova/build: Command failed with exit code 65
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:753:16)
    at Process.ChildProcess._handle.onexit (child_process.js:820:5)

解决方案

I encountered the same problem today.

Installing this plugin using the plugin register does not work (for iOS) at the moment.

You must clone the repository (phonegap-facebook-plugin) to your local file system, say $HOME/src/phonegap-facebook-plugin. And then install the plugin pointing to that path, e.g. cordova plugin add $HOME/src/phonegap-facebook-plugin ...

It turns out that FacebookSDK.framework isn't installed properly when fetching through the plugin registry. It should look like this:

$ ls -l plugins/com.phonegap.plugins.facebookconnect/platforms/ios/FacebookSDK.framework/
total 24
lrwx------  1 mjl  staff   24 Aug 15 15:23 FacebookSDK -> ./Versions/A/FacebookSDK
lrwx------  1 mjl  staff   20 Aug 15 15:23 Headers -> ./Versions/A/Headers
lrwx------  1 mjl  staff   22 Aug 15 15:23 Resources -> ./Versions/A/Resources
drwx------  4 mjl  staff  136 Aug 15 15:23 Versions

But the symlinks aren't preserved when installing through the plugin registry... They are preserved when installing from the local file system though.

这篇关于找不到“FacebookSDK / FacebookSDK.h”文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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