pod_install
Run pod install to install the CocoaPods dependencies specified in your project’s Podfile. This reads the Podfile.lock to install the exact pinned versions and generates or updates the .xcworkspace file. Use this after cloning a repository, adding a new pod to your Podfile, or when a teammate has updated Podfile.lock.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
projectPath | string | No | — | Absolute path to the directory containing the Podfile. If omitted, uses the current working directory. |
repoUpdate | boolean | No | false | Whether to run --repo-update to update the local CocoaPods spec repository before installing. Set to true if pods cannot be found. |
Usage Examples
Section titled “Usage Examples”Install pods for a project
Section titled “Install pods for a project”“Install the CocoaPods dependencies for my app”
{ "projectPath": "/Users/johndoe/Projects/MyApp"}Install with repo update
Section titled “Install with repo update”“Install pods and update the spec repo — I just added a new pod”
{ "projectPath": "/Users/johndoe/Projects/MyApp", "repoUpdate": true}Install pods after cloning
Section titled “Install pods after cloning”“I just cloned the repo, install all the pods”
{ "projectPath": "/Users/johndoe/Projects/MyApp"}Example Output
Section titled “Example Output”Installing CocoaPods dependencies...Project: /Users/johndoe/Projects/MyApp
Analyzing dependenciesDownloading dependenciesInstalling Firebase (11.6.0)Installing FirebaseAnalytics (11.6.0)Installing FirebaseCore (11.6.0)Installing GoogleUtilities (8.0.2)Installing IQKeyboardManager (7.1.1)Installing SDWebImage (5.20.0)Installing SVProgressHUD (2.3.1)Generating Pods projectIntegrating client project
Pod installation complete! There are 4 dependencies from the Podfile and 7 total pods installed.
Workspace: /Users/johndoe/Projects/MyApp/MyApp.xcworkspaceRelated Tools
Section titled “Related Tools”pod_update— Update pods to newer versionspod_outdated— Check which pods have newer versions availablebuild_app— Build the project after installing pods