Update and install CocoaPods dependencies for iOS and macOS builds.
Command
Run the melos pods script:
melos run pod:install
This will:
-
Navigate to packages/app/ios
-
Run pod update && pod install --repo-update
-
Navigate to packages/app/macos
-
Run pod update && pod install --repo-update
When to use
-
After adding new native iOS/macOS dependencies
-
When Podfile.lock is out of sync
-
After upgrading Flutter or plugins
-
When getting "pod not found" errors
Troubleshooting
If pods fail to install:
-
Try cleaning first: cd packages/app/ios && rm -rf Pods Podfile.lock
-
Update CocoaPods: gem install cocoapods
-
Clear pod cache: pod cache clean --all