Fabio Mignogna
Fabio Mignogna

Reputation: 164

ParseFacebookUtilsV4, Swift and CocoaPods: unresolved identifier

I'm developing an iOS App using XCode 7.0 beta 4 (7A165t) and Swift 2.0 that use Parse, Facebook and Google Maps. This is my Podfile:

platform :ios, '8.0'
use_frameworks!
inhibit_all_warnings!

pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'GoogleMaps'
pod 'Parse'
pod 'ParseFacebookUtilsV4'
pod 'SWRevealViewController'

I tried to follow the Parse guide (https://parse.com/docs/ios/guide#users-log-in-amp-sign-up) but I receive this error

error: use of unresolved identifier 'PFFacebookUtils'

This is my Bridging Header

#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
#import <FBSDKShareKit/FBSDKShareKit.h>
#import <SWRevealViewController/SWRevealViewController.h>
#import <ParseFacebookUtilsV4/PFFacebookUtils.h>
#import <Parse/Parse.h>
#import <Bolts/Bolts.h>

Any suggestion?

Upvotes: 1

Views: 661

Answers (2)

Jorge Casariego
Jorge Casariego

Reputation: 22212

Just import ParseFacebookUtilsV4 in your code

import ParseFacebookUtilsV4

this worked for me

Upvotes: 2

Grant Park
Grant Park

Reputation: 1044

Under your project's build settings, make sure that in Swift Compiler - Code Generation, your Objective-C Bridging Header path is set to yourProjectName/nameOfYourBridgingHeader.h

Upvotes: 1

Related Questions