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.
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. |
podName | string | No | — | The name of a specific pod to update. If omitted, all pods are updated. |
Usage Examples
Section titled “Usage Examples”Update all pods
Section titled “Update all pods”“Update all CocoaPods to their latest compatible versions”
{ "projectPath": "/Users/johndoe/Projects/MyApp"}Update a specific pod
Section titled “Update a specific pod”“Update only the Firebase pod”
{ "projectPath": "/Users/johndoe/Projects/MyApp", "podName": "Firebase"}Update SDWebImage
Section titled “Update SDWebImage”“Update SDWebImage to the latest version”
{ "projectPath": "/Users/johndoe/Projects/MyApp", "podName": "SDWebImage"}Example Output
Section titled “Example Output”Updating CocoaPods dependencies...Project: /Users/johndoe/Projects/MyAppUpdating pod: Firebase
Analyzing dependenciesDownloading dependenciesInstalling 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.2Using IQKeyboardManager 7.1.1Using SDWebImage 5.20.0Using SVProgressHUD 2.3.1Generating Pods projectIntegrating client project
Updated 3 pods. 4 pods unchanged.Podfile.lock has been updated.Related Tools
Section titled “Related Tools”pod_install— Install pods from the lock file without updating versionspod_outdated— Check which pods have newer versions before deciding to updatebuild_app— Build the project to verify compatibility after updating