separating_build_environments
separating_build_environments copied to clipboard
Build Failed on IOS
Launching lib/main_dev.dart on iPhone X in debug mode...
Running Xcode clean...
Starting Xcode build...
Xcode build done
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
The path lib/main.dart does not exist
Command /bin/sh failed with exit code 255
Could not build the application for the simulator.
Error launching application on iPhone X.
I get this when I clone and tried to run the project, I did the editConfiguration based on https://flutter.rocks/2018/03/02/separating-build-environments-part-one/
Hi!
I was able to reproduce the same error when cloning the project.
A temporary workaround I came up with is the following:
cd <your Flutter project root>flutter create .- (yes, with the.at the end)- now you should be able to do
flutter run -t lib/main_dev.dartproperly, or use the Run Configurations from IntelliJ IDEA / Android Studio.
I'll look into this more, but I'm currently busy. Let me know if that helps!