Skip to content

FBReactNativeSpec - Command PhaseScriptExecution failed with a nonzero exit code React-Native version 0.63 -> 0.64.1 #161

@ashish3303

Description

@ashish3303

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 -

  1. Uninstall react-native-cli
  2. Delete node_modules, package-lock.json, pods, and podfile.lock
  3. Run npm install && cd ios && npx pod-install
  4. Comment complete code of find-node.sh
  5. Install nvm
  6. 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

  1. react-native = 0.64
  2. Xcode = 12.5

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions