../react-native-xcode.sh no such file or directory

See original GitHub issue

I am using

Environment

React Native Environment Info: System: OS: macOS 10.14 CPU: x64 Intel® Core™ i7-4770K CPU @ 3.50GHz Memory: 36.65 MB / 4.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 8.12.0 - /usr/local/bin/node npm: 6.4.1 - /usr/local/bin/npm SDKs: iOS SDK: Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3 IDEs: Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild npmPackages: @storybook/react-native: 3.3.15 => 3.3.15 react: 16.3.0-alpha.1 => 16.3.0-alpha.1 react-native: ^0.57.3 => 0.57.3 npmGlobalPackages: react-native-cli: 2.0.1

[skip envinfo]

Description

/Users/xcodeclub/Library/Developer/Xcode/DerivedData/Lea*****y/Build/Intermediates.noindex/demo.build/Debug-iphonesimulator/demo.build/Script-00DD1BFF1BD5951E006B06BC.sh: line 3: ../node_modules/react-native/scripts/react-native-xcode.sh: No such file or directory

I am getting this issue and not able to run in iOS but able to run in android I have also checked the build phases of my project in Xcode and there

export NODE_BINARY=node
../node_modules/react-native/scripts/react-native-xcode.sh

actually the file exists in the given path but when I am building the project it is giving error no such file or directory

I am not able to understand what the exact issue may be

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jarednapiercommented, Jun 27, 2019

I am having this exact issue. I am using 0.59.9.

EDIT: For anyone having this issue, for me it had to do with my project’s file structure. I used ‘react-native init’ to create my project so I am not sure if that is different than using Expo, but I changed the path and it found the script. In my case I had to change:

export NODE_BINARY=node
../node_modules/react-native/scripts/react-native-xcode.sh

to

export NODE_BINARY=node
../../../node_modules/react-native/scripts/react-native-xcode.sh

Hope this helps.

0reactions
jarednapiercommented, Aug 28, 2019

The only other advice I can give is to double check and make sure that the file is actually in the path specified in Xcode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

line 45: react-native: command not found Command /bin/sh ...
Navigate to Build Phases > Bundle React Native code and images; Change export NODE_BINARY=node ../node_modules/react-native/packager/react- ...
Read more >
command phasescriptexecution failed with a nonzero exit ...
Step 8: Run Build. Actual result: Build fails env: node: No such file or directory Command PhaseScriptExecution failed with a nonzero exit code....
Read more >
Troubleshooting for React Native | Sentry Documentation
There was 1 problem processing this event: Source code was not found ... node_modules/react-native/scripts/react-native-xcode.sh --force-foreground ...
Read more >
App Center Build Code React Native Troubleshooting
My React Native build fails with: 'FBSDKCoreKit/FBSDKCoreKit.h' file not found ... node_modules/react-native/packager/react-native-xcode.sh" ...
Read more >
Xcode 6.1 error while building IPA - By Microsoft Award MVP
Don't forget to embedded the .mobileprovision file using to sign with cp. ... no such file or directoryreact-native-xcode.sh must be invoked by xcodexcode...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found