-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi,
I have got this error when I trying to run the build using Xcode -
/Volumes/Data/Projects/ReactNativeProjects/testP/node_modules/react-native/scripts/generate-specs.sh: line 27: readlink: command not found
/Volumes/Data/Projects/ReactNativeProjects/testP/node_modules/react-native/scripts/generate-specs.sh: line 27: dirname: command not found
/Volumes/Data/Projects/ReactNativeProjects/testP/node_modules/react-native/scripts/generate-specs.sh: line 27: cd: : No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
I tried everything as below but nothing happens -
- Uninstall react-native-cli
- Delete node_modules, package-lock.json, pods, and podfile.lock
- Run npm install && cd ios && npx pod-install
- Comment complete code of find-node.sh
- Install nvm
- rm -rf node_modules/react-native/scripts/find-node.sh && touch node_modules/react-native/scripts/find-node.sh
But still having the same issue with the build.
And when I run the react-native run-ios command in the terminal then I got this issue:
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/prologiciosdeviosdev/Library/Developer/Xcode/DerivedData/testP-bngsipncomaqjaevntyfingdcigq/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-3805B1ED96D1BF469DDC8CE1A1B7C610.sh
(1 failure)
Versions
- react-native = 0.64
- Xcode = 12.5
Thanks