Skip to content

Crash when using Swift packages: xcodebuild: error: Packages are not supported when using legacy build locations, but the current project has them enabled #57083

@jayeshpansheriya

Description

@jayeshpansheriya

flutter run

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
ProcessException: Process exited abnormally:
xcodebuild: error: Could not resolve package dependencies:
  Packages are not supported when using legacy build locations, but the current project has them
  enabled.
  Command: /usr/bin/xcodebuild -list

i have also try to change flutter channel stable to beta

Doctor summary (to see all details, run flutter doctor -v):

[✓] Flutter (Channel beta, v1.17.0, on Mac OS X 10.15.3 19D76, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.45.0)
[✓] Connected device (3 available)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: crashStack traces logged to the consolet: xcode"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions