-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/node_modules/react-native/scripts/../Libraries. No such file or directory. Command PhaseScriptExecution failed with a nonzero exit code #31228
Comments
Been working on this for two days now. I tried fixing it with #31193 but it still does not fix the issue. This does not happen on any of the versions < 0.64. Have no idea which file/directory it is looking for. |
Try delete |
@jankergg thanks! It worked for me. |
Hi |
@gallavie It seems you may have to use yarn instead. I made no other changes but used yarn to install everything and I have no more issues. I also used yarn start and yarn run ios/android as well and I've had no issues. Maybe and issue involving npm |
Hi thank you |
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/hst/Library/Developer/Xcode/DerivedData/Dexterdexterdexter-bvrfxnwqxcnvncbdgyjgbsnncpdf/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-F2DBC065B2DB02AC085CBB151E776788.sh (in target 'FBReactNativeSpec' from project 'Pods') bash: native/dexterProject/rn_shopify_dexterdexte/node_modules/react-native/scripts/../Libraries: No such file or directory |
After two days of trying i found the solution in deleting spaces in the path where your project lives and run. But in order for this to work properly follow these steps: In order for this to work properly follow these steps:
Crazy and absurd that a space in the path-name could cause this issue |
this works👍🏼 |
work for me |
You can refer to the solution i gave and write that that solution works cause this one you re giving is incomplete and missing some steps in order to work! |
I have same issue but not find any solution yet while tried all methods |
for me the solution is delete all spaces in folder name path to ios project |
I am facing the same issue. I have applied all the above solutions but it's vain can any help me |
Just install a fresh project and then delete these projectname.xcworkspace node_modules package.lock.json and reinstall npm install and npx pod-install ios |
This worked for me, thanks. |
Seems to be a duplicate of #31181 . Discussion related to this issue also at react-native-community/upgrade-support#138 |
I have solved the issue by removing space from the folder names in project path. Then, |
This worked for me too |
This happened also to me upgrading from 0.63 to 0.64. After trying all solutions with no luck, I found that moving the folder to a directory where the path contain no spaces works and build the app successfully. Also, make sure you don't have any spaces in the project path Move the project folder in a path with no spaces (i.e. ~/Dipak/React Native/DemoApp won't work till you have spaces in the path, so move in a path like ~/Dipak/ReactNative/DemoApp) After delete node_modules and ios/Pods |
Thank you so much! |
Buddy You save my life man |
Just don't have any spaces in the name of your folder and it will work fine. I had my project in a folder called 'iOS Projects'. Changed it to 'iOS-Projects' and it's now working. Hope it works for you guys. |
Thank you, It worked 🎉 |
It worked for me, thank you!🎉 |
Hi. I am getting this error: ../node_modules/react-native/scripts/react-native-xcode.sh: line 84: /scripts/find-node.sh: No such file or directory "react": "17.0.2", Device: m1 MacBook Pro Any suggestions on how to fix this? |
I also had the same issue last night. When I check the react-native-xcode.sh file line 84, I saw following:
However, I saw |
Yeah, I have resolved it. The issue is resolved in react-native: 0.66.1 |
Solve mine! Thank you! |
This works! Thanks a lot! |
@himu243 just remove the space in your project directory wherever you have the space |
Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
Creating new react-native project on MacBook Pro M1 chip. Getting this error while running the code in XCodel
React Native version:
MacBook Pro M1 Chip
"react": "17.0.1",
"react-native": "0.64.0"
Steps To Reproduce
Expected Results
App should compile up successfully
Snack, code example, screenshot, or link to a repository:
The text was updated successfully, but these errors were encountered: