user1406716
user1406716

Reputation: 9705

Unable to add Parse using CocoaPods

Following are the steps I did to add Parse using CocoaPods but still getting unresolved error.

Added Pods File:

# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
pod 'Parse'

target 'GroomCal' do

end

target 'GroomCalTests' do

end

target 'GroomCalUITests' do

end

After that I did pod install. Parse and Bolts frameworks got installed (I can see them in XCode).

I then added -Bridging-Header.h and added #import <Parse/Parse.h>to it.

enter image description here

When I try to import Parse in AppDelegate.swift file, I still get No such Module Parse error message. What am I missing here.

enter image description here

I did use the *.xcworkspace file to open the project too.

Upvotes: 2

Views: 750

Answers (1)

Pablo Carrillo Alvarez
Pablo Carrillo Alvarez

Reputation: 1182

To use cocoapods with swift you need to add the flag use_frameworks! to the podfile as swift doesn't allow to add static libraries.

source Cocoapods blog

Upvotes: 3

Related Questions