Parse + Facebook SDK Issues - Using Unresolved Identifier "PFFacebookUtils"

I understand that there were similar posts, but nothing works.

I'm trying to connect my users to register on Facebook, but I'm having problems with the SDK for Facebook.

I added the FBSDKCoreKit.Framework framework, as said in the Facebook manual, as well as the "ParseFacebookUtils.framework". When I try to initialize facebook in my AppDelegate.swift, here ..

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) ->  Bool {
           Parse.setApplicationId("", clientKey: "")

   PFFacebookUtils.initialize()

   return true

I get the error "Using an unresolved identifier" PFFacebookUtils ". I have completed all the steps in the" Settings "section in the Analysis Documents.

This is all in Swift, so here is my bridge header file ...

//  Use this file to import your target public headers that you would like to expose to Swift
#import <Parse/Parse.h>
#import <ParseUI/ParseUI.h>
#import <Bolts/BFTask.h>
#import <ParseFacebookUtils/PFFacebookUtils.h>
#import <FBSDKCoreKit/FBSDKCoreKit.h>

What am I doing wrong? Very upset, but I will eventually find out.

+4
4

, , , , ParseFacebookUtilsV4.Framework( Swift, ) ParseFacebookUtils.Framework( , C).

, , , ParseFacebookUtils.Framework ParseFacebookUtilsV4.Framework. ParseFacebookUtilsV4.Framework, Appdelegate:

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
  FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
}

func applicationDidBecomeActive(application: UIApplication) {
  FBSDKAppEvents.activateApp()
}

func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool {
  return FBSDKApplicationDelegate.sharedInstance() .application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation)
}

:

#import <FBSDKCoreKit/FBSDKCoreKit.h>

Utils, #import ParseFacebookUtils/PFFacebookUtils.h

#import <ParseFacebookUtilsV4/PFFacebookUtils.h>

V4.

, , , .

+8

:

import Bolts
import ParseFacebookUtilsV4
import FBSDKCoreKit
import FBSDKLoginKit
+11

, .

" ", , " " "Swift Compiler - Code Generation", Objective-C Briding Header.

:

enter image description here

ProjectName/Your-Bridging-header.h

+3

This happened to me when I turned on frameworks in cocoapods (use_frameworks!) - as soon as I added "import ParseFacebookUtilsV4", Xcode was able to find PFFacebookUtils.

+3
source

All Articles