Docs
grovs.io Start for free

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 init
2
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'
end
3
Install the pod
Bash
pod install
4
Open the workspace

Close the Xcode project, then open the .xcworkspace:

Bash
open YourProject.xcworkspace
5
Import Grovs
Swift
import Grovs

After installing pods, always open the .xcworkspace. Opening the .xcodeproj leaves the dependencies out.

Last updated 2026-10-27
Was this page helpful?