../react-native-xcode.sh no such file or directory
See original GitHub issueI 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:
- Created 5 years ago
- Comments:11 (1 by maintainers)
Top GitHub Comments
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:
to
Hope this helps.
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.