How to integrate a CocoaPods library
Add the Grovs SDK to your iOS project using CocoaPods.
If CocoaPods isn't installed, run sudo gem install cocoapods first.
1
Create a Podfile
In the directory that holds your .xcodeproj, run:
Bash
cd /path/to/your/project
pod init2
Add the Grovs pod
Add Grovs to your target in the Podfile. Replace 'YourApp' with your target name.
Ruby
target 'YourApp' do
use_frameworks!
pod 'Grovs', '~> 3.1'
end3
Install the pod
Bash
pod install4
Open the workspace
Close the Xcode project, then open the .xcworkspace:
Bash
open YourProject.xcworkspace5
Import Grovs
Swift
import GrovsAfter installing pods, always open the .xcworkspace. Opening the .xcodeproj leaves the dependencies out.
Was this page helpful?