Closed
Description
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 commentedon May 4, 2018
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 commentedon May 12, 2018
I'm having the same issue when running some of the sample projects (stocks and flutter_view), and flutter doctor returns no issue.
hidrodixtion commentedon Aug 2, 2018
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 commentedon Sep 26, 2018
Right, those global variables had incorrect paths in my project. They had Windows paths (project imported from Win10) in an iOS project.
artAst commentedon Sep 27, 2018
@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 commentedon Sep 28, 2018
@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 commentedon Sep 28, 2018
Right, I just set it up this morning. Much cleaner like this.
appleboy commentedon Dec 9, 2018
It is working with add
FLUTTER_ROOT
global variable in bash file.bashrc
.kevinkicho commentedon Jan 28, 2019
User Defined Setting can be added by going to Editor --> Add Build Setting --> Add User-Defined Setting
kangwang1988 commentedon Jan 28, 2019
FLUTTER_ROOT
is supposed to be managed byGenerated.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 commentedon Jan 28, 2019
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 haveFLUTTER_ROOT
set in the User-Defined build settings and the correct path was set in my Generated.xcconfig. I added aFLUTTER_ROOT
build setting and was able to successfully build my project in Xcode.LGByte commentedon Mar 20, 2019
what's the value FLUTTER_ROOT ,why i still can't run my project
liaoyuanng commentedon Jul 8, 2019
run
flutter run
influtter_moudle
l-k22 commentedon Jul 18, 2019
Did you ever come across a solution?
23 remaining items