解析和Facebook SDK导入Xcode 6中的冲突(“ParseFacebookUtils”未被识别) [英] Parse and Facebook SDK imports conflict in Xcode 6 ("ParseFacebookUtils" is not recognized)

查看:123
本文介绍了解析和Facebook SDK导入Xcode 6中的冲突(“ParseFacebookUtils”未被识别)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在Swift导入ParseFacebookUtils框架时,它不起作用。在文档 https://parse.com/docs/ios / guide#users-facebook-sdk-and-parse 我按照步骤来集成FBSDK(一旦我有Parse并运行,没有错误)。



事实是,由于Parse.com iOS SDK刚刚更新(您不再需要为Parse SDK框架创建桥接标题),而在链接上面他们告诉你包括:

  #import< FBSDKCoreKit / FBSDKCoreKit.h> 
#import< ParseFacebookUtilsV4 / PFFacebookUtils.h>您的头文件中的

我尝试使用swift导入ParseFacebookUtils,但是编译器抱怨说:



(这是我的AppDelegate.swift文件)








然后我尝试了我的运气,继续前进,像上面的图像一样导入一切,但是创建一个桥接头只是为了导入ParseFacebookUtils,像这样: p>



但它没有工作。即使我以快速的方式评论了ParseFacebookUtils。



你能帮我解决这个问题吗?



非常感谢你提前的帮助! p>

干杯!

解决方案

在我的AppDelegate中,我没有导入ParseFacebookUtils,只是UIKit,Parse,FBSDKCoreKit和FBSDKLoginKit(我也添加了Bolts来安全,但没有什么区别)。我的桥接头还包括#import你尝试删除不是V4的其他PFFacebookUtils框架吗?我的Parse框架来自PFFacebookUtils.Framework和PFFacebookUtilsV4.Framework和删除旧的一个摆脱了我的编译错误,虽然我的应用程序仍然有自己的登录问题,在运行时你希望没有。希望解决您的问题!


When I try to import the ParseFacebookUtils framework in Swift, it does not work. In the documentation https://parse.com/docs/ios/guide#users-facebook-sdk-and-parse I follow the steps to integrate the FBSDK (once I have Parse up and running, error-free).

The thing is that since the Parse.com iOS SDK was just recently updated (you dont really have to create bridging headers anymore for the Parse SDK Frameworks), and in the link above they tell you to include:

#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <ParseFacebookUtilsV4/PFFacebookUtils.h>

in your header file. I tried both to import the ParseFacebookUtils with a regular import in swift, but the compiler complains and says:

(This is my AppDelegate.swift file)


Then I tried my luck and went ahead and import everything normally as in the image above, but then creating a bridging header just to import ParseFacebookUtils, like so:

But it did not work. Even if I comment out the ParseFacebookUtils in swift.

Can you help me solving this issue?

Thank you so much for your help in advance!

Cheers!

解决方案

In my AppDelegate, I didn't have to import ParseFacebookUtils, just UIKit, Parse, FBSDKCoreKit, and FBSDKLoginKit (I also added Bolts to be safe but it didn't make a difference). My bridging header also includes "#import " Have you tried deleting the other PFFacebookUtils Framework that isn't V4? My Parse frameworks came with PFFacebookUtils.Framework and PFFacebookUtilsV4.Framework and deleting the older one got rid of my compiling errors, although my app still has its own login issue at runtime that you hopefully won't have. Hope that solves your problem!

这篇关于解析和Facebook SDK导入Xcode 6中的冲突(“ParseFacebookUtils”未被识别)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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