21

Does anyone know where to find the framework ParseFacebookUtils/PFFacebookUtils.h in the new version of the SDK in CocoaPods? Bolts are installed automatically but no ParseFacebookUtils

Thanks!

mhergon
  • 1,688
  • 1
  • 18
  • 39
  • Unfortunately this question on SO, your post in the google group, and a deflected issue in Facebook are the only indication that something is amiss. I wish there were a more reliable way to get Parse support. https://developers.facebook.com/bugs/818703304829179/ – Fabian Sep 01 '14 at 00:51
  • `pod search Parse` doesn't show it - I expect someone will put it up soon. – vaughan Sep 01 '14 at 03:22

6 Answers6

28

The official pod is Parse not Parse-iOS, actually the iOS was just deprecated a couple of days ago, to get things working just add ParseFacebookUtils to your pods file and update.

So this means your pods file should look like

pod 'Facebook-iOS-SDK'
pod 'Parse'
pod 'ParseFacebookUtils'

save and update.

dcestari
  • 442
  • 3
  • 7
samiq
  • 2,954
  • 1
  • 29
  • 29
  • 2
    For the latest Facebook SDK4.0 it doesn't work. So I commented pod 'Facebook-iOS-SDK' to allow pods to install older version of Fasebook SDK. – Dmitry Klimkin Apr 02 '15 at 03:03
12

If you want to use the Facebook 4 SDK and the new version of Parse, you need the ParseFacebookUtilsV4 pod.

pod 'Parse',            '1.7.1'
pod 'ParseFacebookUtilsV4','1.7.1'
pod 'Facebook-iOS-SDK', '4.0.1'
Matt Hudson
  • 7,329
  • 5
  • 49
  • 66
2

My Podfile:

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '8.1'

pod 'Facebook-iOS-SDK', '3.20.0'
pod 'Parse', '1.5.0'
pod 'ParseFacebookUtils', '1.5.0.1'

My [Xcode's project name]-Bridging-Header:

//  Use this file to import your target's public headers that you would like to expose to Swift.

#import <FacebookSDK/FacebookSDK.h>
#import <Parse/Parse.h>
#import <ParseFacebookUtils/PFFacebookUtils.h>

Works like a charm using Xcode 6.1

King-Wizard
  • 15,628
  • 6
  • 82
  • 76
2

Facebook Update

Facebook-iOS-SDK has been deprecated in favor of FBSDKCoreKit

platform :ios, '8.0'
target 'SO-25575606' do
pod 'FBSDKCoreKit'
pod 'Parse'
pod 'ParseFacebookUtils'
end
Community
  • 1
  • 1
SwiftArchitect
  • 47,376
  • 28
  • 140
  • 179
0

An official podspec has been released for Parse, and the older one should be deprecated.

So now there's a ParseFacebookUtils pod as well.

https://github.com/CocoaPods/Specs/blob/master/Specs/Parse-iOS/1.2.21/Parse-iOS.podspec.json https://github.com/hlung/podspec/issues/1

Fabian
  • 6,973
  • 2
  • 26
  • 27
  • Thank you Fabian for advising me about that. – mhergon Sep 02 '14 at 19:36
  • Oops! Doesn't work! Analyzing dependencies [!] Unable to satisfy the following requirements: - `Facebook-iOS-SDK (~> 3.17)` required by `Parse (1.2.21)` - `Facebook-iOS-SDK (~> 3.9.0)` required by `ParseFacebookUtils (1.2.21)` – mhergon Sep 02 '14 at 19:55
  • What this is telling you is that ParseFacebookUtils requires Facebook SDK 3.9, which is a bit outdated. Something else (possibly your Podfile) is requiring Facebook SDK 3.17. If you remove your explicit dependency on the Facebook SDK and keep ParseFacebookUtils, it ought to sort itself out. Or move ParseFacebookUtils farther up your Podfile. I've asked Parse whether depending on an older version of the Facebook SDK is deliberate. – Fabian Sep 03 '14 at 01:15
  • 1
    Fabian, the problem was pod name. The official pod repo name is "Parse-iOS" and not "Parse" or "Parse-iOS-SDK". With the correct repo, works correctly. – mhergon Sep 03 '14 at 08:28
  • @Fabian any news from parse as to whether the 3.9 is on purpose? – Liron Sep 11 '14 at 13:11
  • I'm not sure if @mergon was right in September of last year but as of now, the opposite seems to be true. I quote the description field of the 'Parse-iOS' pod: "Parse-iOS has been deprecated in favor of Parse" – Craig Grummitt Sep 21 '15 at 19:46
0

Go to Project > Select the project in Targets > Find by Other Linker Flags and add the ${inherited} flag like print above.

screen of flags

Just compile and well done!