Skip to content

Plugin with only Swift Package Manager support raise error on flutter pub get from a non MacOS machine #162594

@sbatezat

Description

@sbatezat

Steps to reproduce (Flutter 3.27.3)

  1. Include a SPM only plugin in your packages/data/pubspec.yaml project
  2. Create a flutter project that depends on this packages/data
  3. Run flutter config --enable-swift-package-manager
  4. Run flutter pub get inside this newly created project => on MacOS : eveything is working fine, on Linux, I've got the following error message

Plugin 'my_plugin' is only Swift Package Manager compatible. Try enabling Swift Package Manager by running "flutter config --enable-swift-package-manager" or remove the plugin as a dependency.

Expected results

Do not try to resolve iOS dependency on non MacOS machine?

Actual results

Error on linux machine

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listfound in release: 3.27Found to occur in 3.27found in release: 3.29Found to occur in 3.29has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-linuxBuilding on or for Linux specificallyplatform-windowsBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions