Reputation: 1093
I have a swift project without cocoapods working with Parse SDK and Facebook SDK (for login and backend use).
When creating a Podfile to use GoogleMaps SDK (for places autocomplete suggestions) I get the following error: Use of unresolved identifier 'PFFacebookUtils'
. The Podfile is the following:
source 'https://github.com/CocoaPods/Specs.git'
xcodeproj './PROJECT_NAME.xcodeproj'
platform :ios, '8.1'
pod 'GoogleMaps'
Parse & Facebook frameworks linked are included (everything worked before cocoapods created the workspace). Any ideas? Thanks!
UPDATE:
I don't know if it makes any sense but if I use import ParseFacebookUtilsV4
in the files not recognizing PFFacebookUtils it recognizes it but now I get a linker error (apparently not finding any of Parse OBJC classes):
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PFAnalytics"
__TMaCSo11PFAnalytics in AppDelegate.o
"_OBJC_CLASS_$_PFCloud", referenced from:
...
Upvotes: 3
Views: 7039
Reputation: 24195
Install the pods again:
-pod install
After that do a check list:
Library Search Paths. In my project Library Search Paths is empty. so I believe that cocoapods does not modify it. so remove old library links from there if any.
Header Search Path
Make sure that these are pointing to the new libraries in the Pod Project. and not the old ones.
My podfile to match with the setting associated to it:
target 'SomeName' do
pod 'RadioButton' pod 'AFNetworking', '~> 2.5' pod 'SSZipArchive', '~> 0.2.1' pod 'SDWebImage', '~> 3.7'
end
target 'SomeNameTests' do
end
Upvotes: 4
Reputation: 2512
Have you import needed file in bridging header:
#import <Parse/Parse.h>
#import <ParseFacebookUtils/PFFacebookUtils.h>
Upvotes: 1