Reputation: 9705
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.
When I try to import Parse
in AppDelegate.swift
file, I still get No such Module Parse
error message. What am I missing here.
I did use the *.xcworkspace
file to open the project too.
Upvotes: 2
Views: 750
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