Skip to content

xcode_backend.sh No such file or directory #17234

Closed
@artAst

Description

@artAst

I tried to run xcode run on my project inside xcode
I got the following error: /bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory

I already did flutter run as indicated here: #8011

but still the same issue occurs.

Flutter Doctor

[✓] Flutter (on Mac OS X 10.13.2 17C88, locale en-US, channel alpha)
    • Flutter at /Applications/Flutter
    • Framework revision fd7853faad (5 months ago), 2017-12-05 16:12:55 -0800
    • Engine revision b57fca02b5
    • Tools Dart version 1.25.0-dev.11.0
    • Engine Dart version 2.0.0-edge.d4cfecb1065d322d3670df7e9ec9a0cc2d4b90f0

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.2)
    • Android SDK at /usr/local/Caskroom/android-sdk/3859397,26.0.2
    • Android NDK location not configured (this optional configuration is useful                                                                               for native profiling support)
    • Platform android-26, build-tools 26.0.2
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Content                                                                              s/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_152-b16)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.3, Build version 9E145
    • ios-deploy 1.9.2
    • CocoaPods version 1.3.0

[✗] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/stud                                                                              io/index.html
      (or visit https://flutter.io/setup/#android-setup for detailed instruction                                                                              s).

[✓] Connected devices
    • None

Activity

ko514615

ko514615 commented on May 4, 2018

@ko514615

I did run into the same error yesterday.
Did you close the issue because you found a resolution?

If so, could you share your resolution?

Thanks

st-f

st-f commented on May 12, 2018

@st-f

I'm having the same issue when running some of the sample projects (stocks and flutter_view), and flutter doctor returns no issue.

hidrodixtion

hidrodixtion commented on Aug 2, 2018

@hidrodixtion

To manually fix this, open Project Target and add User-Defined Setting with key name FLUTTER_ROOT with the value of your flutter SDK location.

lance-blo

lance-blo commented on Sep 26, 2018

@lance-blo

Right, those global variables had incorrect paths in my project. They had Windows paths (project imported from Win10) in an iOS project.

artAst

artAst commented on Sep 27, 2018

@artAst
Author

@hidrodixtion is correct. you need to add flutter_root.
This problem occurred on my dev server. It is not an issue from my local.
My dev setup was different, probably due to user permissions

zoechi

zoechi commented on Sep 28, 2018

@zoechi
Contributor

@lance-blo using Git to share projects with other machines helps prevent such issues because the 3 included .gitignore files prevent generated files from being committed.

lance-blo

lance-blo commented on Sep 28, 2018

@lance-blo

Right, I just set it up this morning. Much cleaner like this.

appleboy

appleboy commented on Dec 9, 2018

@appleboy

It is working with add FLUTTER_ROOT global variable in bash file .bashrc.

kevinkicho

kevinkicho commented on Jan 28, 2019

@kevinkicho

User Defined Setting can be added by going to Editor --> Add Build Setting --> Add User-Defined Setting

kangwang1988

kangwang1988 commented on Jan 28, 2019

@kangwang1988
Contributor

FLUTTER_ROOT is supposed to be managed by Generated.xcconfig(create/update by flutter_tools). I don't think write it using hard code like .bashrc or User-Defined Setting is a good idea.
If this issue can be reproduced even if you've run flutter run successfully, It should be a bug.

sweenr

sweenr commented on Jan 28, 2019

@sweenr

I'm also having this issue. My project would not build with the same error as above. I tried closing Xcode and running flutter run from the command line which successfully built and ran my project in the simulator. I re-opened XCode and was still unable to build my project with the same error. I did not have FLUTTER_ROOT set in the User-Defined build settings and the correct path was set in my Generated.xcconfig. I added a FLUTTER_ROOT build setting and was able to successfully build my project in Xcode.

LGByte

LGByte commented on Mar 20, 2019

@LGByte

what's the value FLUTTER_ROOT ,why i still can't run my project

liaoyuanng

liaoyuanng commented on Jul 8, 2019

@liaoyuanng

run flutter run in flutter_moudle

l-k22

l-k22 commented on Jul 18, 2019

@l-k22

FLUTTER_ROOT is supposed to be managed by Generated.xcconfig(create/update by flutter_tools). I don't think write it using hard code like .bashrc or User-Defined Setting is a good idea.
If this issue can be reproduced even if you've run flutter run successfully, It should be a bug.

Did you ever come across a solution?

23 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @appleboy@hidrodixtion@st-f@sgehrman@shinriyo

        Issue actions

          xcode_backend.sh No such file or directory · Issue #17234 · flutter/flutter