Why does Xcode not identify PFFacebookUtils?

Xcode 6 beta recognizes Parse but not PFFacebookUtils when I try to initialize both in appdelegate.m

this is how i do the Facebook SDK integration

I use cocoa pods to add parse and Facebook to an iOS project. I am using Xcode 6 beta. I create a pod file this way

platform :ios, '8.0' pod 'Parse' 

I run pod install on the terminal, and this download session and Facebook SDK

Now I import the syntax into appdelegate.m

using

 #import <Parse/Parse.h> 
+6
source share
1 answer

With v1.2.21 of the Parse library, PFFacebookUtils.h moved to another Framework, ParseFacebookUtils . Xcode does not recognize PFFacebookUtils.h because it most likely no longer exists.

You need to add the ParseFacebookUtils module to the subfile:

 pod 'ParseFacebookUtils', '~> 1.2' 

BUT, there is a problem with this. The Parse pod specification lists Facebook-iOS-SDK v3.17 as a dependency, and the ParseFacebookUtils specification lists an alternative Parse podspec ( Parse-iOS ) as well as the Facebook-iOS-SDK v3.9.0 as a dependency, which is obviously a conflict. You do not need 2x parsing libraries and incompatible versions of the SDK for Facebook.

I forked and updated the version of the ParseFacebookUtils specification on github that solves both of these problems. If you want to use it, add the following to your file:

 pod 'ParseFacebookUtils', :podspec => 'https://raw.githubusercontent.com/rickerbh/ParseFacebookUtilsSpec/master/ParseFacebookUtils.podspec.json' 

And don't forget

 #import <ParseFacebookUtils/PFFacebookUtils.h> 

so your project knows about PFFacebookUtils

+10
source

Source: https://habr.com/ru/post/974798/


All Articles