Skip to content

pod_update

Run pod update to update CocoaPods dependencies to the latest versions that satisfy the version constraints in your Podfile. You can update all pods at once or target a specific pod by name. This modifies Podfile.lock with the new version pins and regenerates the Pods project.

ParameterTypeRequiredDefaultDescription
projectPathstringNoAbsolute path to the directory containing the Podfile. If omitted, uses the current working directory.
podNamestringNoThe name of a specific pod to update. If omitted, all pods are updated.

“Update all CocoaPods to their latest compatible versions”

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

“Update only the Firebase pod”

{
"projectPath": "/Users/johndoe/Projects/MyApp",
"podName": "Firebase"
}

“Update SDWebImage to the latest version”

{
"projectPath": "/Users/johndoe/Projects/MyApp",
"podName": "SDWebImage"
}
Updating CocoaPods dependencies...
Project: /Users/johndoe/Projects/MyApp
Updating pod: Firebase
Analyzing dependencies
Downloading dependencies
Installing Firebase 11.6.0 (was 11.4.0)
Installing FirebaseAnalytics 11.6.0 (was 11.4.0)
Installing FirebaseCore 11.6.0 (was 11.4.0)
Using GoogleUtilities 8.0.2
Using IQKeyboardManager 7.1.1
Using SDWebImage 5.20.0
Using SVProgressHUD 2.3.1
Generating Pods project
Integrating client project
Updated 3 pods. 4 pods unchanged.
Podfile.lock has been updated.
  • pod_install — Install pods from the lock file without updating versions
  • pod_outdated — Check which pods have newer versions before deciding to update
  • build_app — Build the project to verify compatibility after updating