I have a Flutter app with 2 flavors dev and prod
I set up the flavor for Android and Xcode and everything work will till I shared the project with my colleague when he tried to run it using an Android emulator it worked but when using ios this error occurred
➜ flutter run -t lib/main_prod.dart --flavor prod Launching lib/main_prod.dart on iPhone 15 Pro in debug mode... Error: The Xcode project does not define custom schemes. You cannot use the --flavor option. ➜ flutter doctor output:
➜ flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.19.2, on macOS 14.2.1 23C71 darwin-arm64, locale en-MA) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.1) [✓] IntelliJ IDEA Ultimate Edition (version 2023.3.2) [✓] VS Code (version 1.86.2) [✓] Connected device (3 available) [✓] Network resources screenshot of my Xcode Runner

Источник: https://stackoverflow.com/questions/781 ... ot-use-the
Мобильная версия