BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug === The path does not exist Command /bin/sh failed with exit code 255

Issue

Im getting the following error when running my flutter app as iOS. And when i run it as Android on Android emulator, it builds successfully and it works fine. I don’t know whats wrong with the iOS part.

BUILD FAILED

Xcode’s output:

↳
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    The path  does not exist
    Command /bin/sh failed with exit code 255

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.

Solution

I was able to solve the error by doing the following:

1.Open your project in Xcode by right clicking the Runner.xcworkspace folder, then go down to Flutter and select it, and then select Open iOS module in Xcode.

2.Then select Runner(or the name of your project in Xcode) by going to show project navigator.

3.Then under Project Runner(or the name of your project in Xcode), select info.

4.Then under Configuration, set Runner to Generated, do that for all three(Debug, Release, Profile).

After that try to build again, and you will be able to build successfully, then you can run your app again.

I hope this helps someone else out there who is facing this kinda error.

Answered By – davidmcharo

Answer Checked By – Katrina (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.