Conversation
There was a problem hiding this comment.
Code Review
This pull request adds a new section to the documentation detailing how to remove CocoaPods integration from iOS and macOS Flutter projects once they have migrated to Swift Package Manager. The review feedback suggests updating the configuration file cleanup instructions to include the Profile.xcconfig files (and macOS equivalents) alongside the debug and release configurations to prevent build failures in profile mode.
|
Staged preview of the updated docs.flutter.dev site (updated for commit cd7e2fa): https://flutter-docs-prod--docs-pr13774-cocoapods-2kd84rzj.web.app |
|
|
||
| In `ios/Flutter/Debug.xcconfig`, `ios/Flutter/Profile.xcconfig`, | ||
| and `ios/Flutter/Release.xcconfig` | ||
| (and macOS equivalents under `macos/Flutter/`), |
There was a problem hiding this comment.
Technically the macOS ones are named differently macos/Flutter/Flutter-Debug.xcconfig and macos/Flutter/Flutter-Release.xcconfig
|
|
||
| 1. Check your configuration files: | ||
|
|
||
| In `ios/Flutter/Debug.xcconfig`, `ios/Flutter/Profile.xcconfig`, |
There was a problem hiding this comment.
| In `ios/Flutter/Debug.xcconfig`, `ios/Flutter/Profile.xcconfig`, | |
| In `ios/Flutter/Debug.xcconfig`, |
There shouldn't be a profile one
| cd macos | ||
| pod deintegrate | ||
| cd .. | ||
| ``` |
There was a problem hiding this comment.
Maybe use tabs for iOS vs macOS?
| ## How to remove CocoaPods integration | ||
|
|
||
| When all Flutter plugins in your project support Swift Package Manager, | ||
| you can remove CocoaPods integration completely from your project. |
There was a problem hiding this comment.
Some developer may have also manually edited their Podfile to added CocoaPod dependencies or logic that are not Flutter plugins. If they've done this, they need to manually transition any Pod dependencies or custom logic. We can't really instruct them on how to do this, though, since it can vary widely
Fixes #13082
Staged: https://flutter-docs-prod--docs-pr13774-cocoapods-2kd84rzj.web.app/packages-and-plugins/swift-package-manager/for-app-developers#how-to-remove-cocoapods-integration