diff --git a/packages/flutter_tools/lib/src/migrations/swift_package_manager_integration_migration.dart b/packages/flutter_tools/lib/src/migrations/swift_package_manager_integration_migration.dart index 56c7d909dee99..74bad5a17860d 100644 --- a/packages/flutter_tools/lib/src/migrations/swift_package_manager_integration_migration.dart +++ b/packages/flutter_tools/lib/src/migrations/swift_package_manager_integration_migration.dart @@ -173,8 +173,6 @@ class SwiftPackageManagerIntegrationMigration extends ProjectMigrator { await _xcodeProjectInterpreter.getInfo(_xcodeProject.hostAppRoot.path); } on Exception catch (e) { restoreFromBackup(schemeInfo); - // TODO(vashworth): Add link to instructions on how to manually integrate - // once available on website. throwToolExit( 'An error occurred when adding Swift Package Manager integration:\n' ' $e\n\n' @@ -184,10 +182,12 @@ class SwiftPackageManagerIntegrationMigration extends ProjectMigrator { ' ${_platform.name}/Runner.xcodeproj/project.pbxproj\n' ' ${_platform.name}/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme ' '(or the scheme for the flavor used)\n\n' - 'To avoid this failure, disable Flutter Swift Package Manager integration for the project\n' + 'To add Swift Package Manager integration manually, please use the following instructions:\n' + 'https://docs.flutter.dev/to/add-swift-package-manager-manually\n\n' + 'Alternatively, to avoid this failure, disable Flutter Swift Package Manager integration for the project\n' 'by adding the following in the project\'s pubspec.yaml under the "flutter" section:\n' ' "disable-swift-package-manager: true"\n' - 'Alternatively, disable Flutter Swift Package Manager integration globally with the\n' + 'Or disable Flutter Swift Package Manager integration globally with the\n' 'following command:\n' ' "flutter config --no-enable-swift-package-manager"\n', );