想第一次用 xcode 和 phonegap 做点什么。因为我在做很多 Facebook 应用程序,所以我想用 Facebook 登录构建一个原生 iOS 应用程序。
遵循此处的步骤:https ://github.com/davejohnson/phonegap-plugin-facebook-connect
有问题,插件不显示。
我将它复制到我项目的插件文件夹中:http: //i.stack.imgur.com/ueYk0.png
但它现在在 Xcode 中显示为项目结构中的黄色文件夹或文件。
认为这是合乎逻辑的,我收到以下错误:
["org.apache.cordova.facebook.Connect2","org.apache.cordova.facebook.Connect","init",["471175846247043"]]
2012-10-04 21:10:19.015 HelloWorld[5476:c07] CDVPlugin class FacebookConnectPlugin (pluginName: org.apache.cordova.facebook.Connect) does not exist.
2012-10-04 21:10:19.017 HelloWorld[5476:c07] ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-10-04 21:10:19.018 HelloWorld[5476:c07] FAILED pluginJSON = ["org.apache.cordova.facebook.Connect3","org.apache.cordova.facebook.Connect","getLoginStatus",[]]
2012-10-04 21:10:23.571 HelloWorld[5476:c07] CDVPlugin class FacebookConnectPlugin (pluginName: org.apache.cordova.facebook.Connect) does not exist.
2012-10-04 21:10:23.573 HelloWorld[5476:c07] ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-10-04 21:10:23.575 HelloWorld[5476:c07] FAILED pluginJSON = ["org.apache.cordova.facebook.Connect4","org.apache.cordova.facebook.Connect","login",["email"]]