使用未解析的标识符PFFacebookUtils [英] Use of unresolved identifier PFFacebookUtils
问题描述
我已经完成了这里所有提及( https://www.parse.com/docs/ios_guide# fbusers / iOS )用于在iOS登录Facebook登录。
I've done all is mentioned here (https://www.parse.com/docs/ios_guide#fbusers/iOS) for implement in iOS the Facebook Login.
问题是我有编译错误使用未解析的标识符PFFacebookUtils
附近一行
The problem is that i have an compile error "Use of unresolved identifier PFFacebookUtils" near che line
PFFacebookUtils.initializeFacebook()
PFFacebookUtils.initializeFacebook()
在AppDelegate中。我已经正确地将Parse和Facebook Framework导入到我的项目中。
Xcode 6 Beta中是否有一些知道错误?
in AppDelegate. I've correctly imported the Parse and Facebook Framework into my project. Are there some bug knowed in Xcode 6 Beta?
我还没有找到解决方案。
I've not find a solution yet.
谢谢。
推荐答案
解析文档尚未提及此问题:下载Parse iOS SDK后,您应该包括将 ParseFacebookUtils.framework
导入到您的项目中,然后将其导入到您要使用它的每个文件中,就像您在 Parse.framework $中所做的那样c $ c>本身:
Parse docs doesn't mention this yet: After downloading the Parse iOS SDK, You should include the ParseFacebookUtils.framework
into your project, then import it in each file you want to use it, like you did for the Parse.framework
itself:
#import <Parse/Parse.h>// This use to be enough to use Facebook utilities
#import <ParseFacebookUtils/PFFacebookUtils.h>// But now we should import this framework as well to use Facebook utilitis
Parse团队将Facebook相关类与Parse API分开,因此 ParseFacebookUtils.framework
Parse team has separated the Facebook related classes from Parse API, hence a ParseFacebookUtils.framework
这篇关于使用未解析的标识符PFFacebookUtils的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!