Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SwiftPM] Prepare guides for next stable release #11212

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
Flutter's Swift Package Manager support is turned off by default.
To turn it on:

1. Switch to Flutter's `main` channel:

```sh
flutter channel main --no-cache-artifacts
```

1. Upgrade to the latest Flutter SDK and download artifacts:
1. Upgrade to the latest Flutter SDK:

```sh
flutter upgrade
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ To migrate your project:

1. [Turn on Swift Package Manager][].

1. Run the iOS app using the Flutter CLI.
2. Run the iOS app using the Flutter CLI.

If your iOS project doesn't have Swift Package Manager integration yet, the
Flutter CLI tries to migrate your project and outputs something like:
Expand All @@ -21,13 +21,13 @@ To migrate your project:
`ios/Runner.xcodeproj/project.pbxproj` and
`ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme` files.

1. If the Flutter CLI's automatic migration fails, follow the steps in
3. If the Flutter CLI's automatic migration fails, follow the steps in
[add Swift Package Manager integration manually][manualIntegration].

[Optional] To check if your project is migrated:

1. Run the app in Xcode.
1. Ensure that **Run Prepare Flutter Framework Script** runs as a pre-action
2. Ensure that **Run Prepare Flutter Framework Script** runs as a pre-action
and that `FlutterGeneratedPluginSwiftPackage` is a target dependency.

{% render docs/captioned-image.liquid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ description: How to use Swift Package Manager for native iOS or macOS dependenci
Flutter is migrating to [Swift Package Manager][] to manage iOS and macOS native
dependencies.
Flutter's support of Swift Package Manager is under development.
The implementation might change in the future.
Swift Package Manager support is only available on the [`main` channel][].
If you find a bug in Flutter's Swift Package Manager support,
[open an issue][].
Swift Package Manager support is [off by default][].
Flutter continues to support CocoaPods.
:::

Expand All @@ -21,11 +22,8 @@ Flutter's Swift Package Manager integration has several benefits:
You don't need to install Ruby and CocoaPods if your project uses
Swift Package Manager.

If you find a bug in Flutter's Swift Package Manager support,
[open an issue][].

[Swift Package Manager]: https://www.swift.org/documentation/package-manager/
[`main` channel]: /release/upgrade#switching-flutter-channels
[off by default]: #how-to-turn-on-swift-package-manager
[Swift packages]: https://swiftpackageindex.com/
[open an issue]: {{site.github}}/flutter/flutter/issues/new?template=2_bug.yml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,24 @@ description: How to add Swift Package Manager compatibility to iOS and macOS plu
Flutter is migrating to [Swift Package Manager][]
to manage iOS and macOS native dependencies.
Flutter's support of Swift Package Manager is under development.
The implementation might change in the future.
Swift Package Manager support is only available on the [`main` channel][].
If you find a bug in Flutter's Swift Package Manager support,
[open an issue][].
Swift Package Manager support is [off by default][].
Flutter continues to support CocoaPods.
:::

Flutter's Swift Package Manager integration has several benefits:

1. **Access to the Swift package ecosystem**.
1. **Provides access to the Swift package ecosystem**.
Flutter plugins can use the growing ecosystem of [Swift packages][]!
1. **Simplifies Flutter installation**.
Swift Package Manager is bundled with Xcode.
In the future, you won’t need to install Ruby and CocoaPods to target iOS or
macOS.

If you find a bug in Flutter's Swift Package Manager support,
[open an issue][].

[Swift Package Manager]: https://www.swift.org/documentation/package-manager/
[`main` channel]: /release/upgrade#switching-flutter-channels
[off by default]: #how-to-turn-on-swift-package-manager
[Swift packages]: https://swiftpackageindex.com/
[open an issue]: {{site.github}}/flutter/flutter/issues/new?template=2_bug.yml

Expand Down
Loading