separating_build_environments icon indicating copy to clipboard operation
separating_build_environments copied to clipboard

Build Failed on IOS

Open yuzurihaaa opened this issue 7 years ago • 1 comments

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/

yuzurihaaa avatar Mar 27 '18 02:03 yuzurihaaa

Hi!

I was able to reproduce the same error when cloning the project.

A temporary workaround I came up with is the following:

  1. cd <your Flutter project root>
  2. flutter create . - (yes, with the . at the end)
  3. now you should be able to do flutter run -t lib/main_dev.dart properly, 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!

roughike avatar Mar 27 '18 16:03 roughike