Skip to content

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.

ParameterTypeRequiredDefaultDescription
projectPathstringNoAbsolute path to the directory containing the Podfile. If omitted, uses the current working directory.
repoUpdatebooleanNofalseWhether to run --repo-update to update the local CocoaPods spec repository before installing. Set to true if pods cannot be found.

“Install the CocoaPods dependencies for my app”

{
"projectPath": "/Users/johndoe/Projects/MyApp"
}

“Install pods and update the spec repo — I just added a new pod”

{
"projectPath": "/Users/johndoe/Projects/MyApp",
"repoUpdate": true
}

“I just cloned the repo, install all the pods”

{
"projectPath": "/Users/johndoe/Projects/MyApp"
}
Installing CocoaPods dependencies...
Project: /Users/johndoe/Projects/MyApp
Analyzing dependencies
Downloading dependencies
Installing 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 project
Integrating client project
Pod installation complete! There are 4 dependencies from the Podfile and 7 total pods installed.
Workspace: /Users/johndoe/Projects/MyApp/MyApp.xcworkspace
  • pod_update — Update pods to newer versions
  • pod_outdated — Check which pods have newer versions available
  • build_app — Build the project after installing pods