使用未解析的标识符 PFFacebookUtils [英] Use of unresolved identifier PFFacebookUtils

查看:22
本文介绍了使用未解析的标识符 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 框架正确导入到我的项目中.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?

推荐答案

Parse docs 还没有提到这一点:下载 Parse iOS SDK 后,您应该将 ParseFacebookUtils.framework 包含到您的项目中,然后将其导入到您要使用的每个文件中,就像您对 Parse.framework 本身所做的一样:

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屋!

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