2

I’m currently developing an app in react native and I’ struggling with this error: “Xcode 12.5: Command PhaseScriptExecution failed with a nonzero exit code“. Now I’ve already tried to:

  1. Uninstall and reinstall all thing related to pods.
  2. Delete and reinstall node_modules folder.
  3. I’ve red there’s something to in keychain but again, it doesn’t work.

I think it could be a permission error or something like that, because it occurs at the end of the app build.

Thank you

2
  • One of your Build Phases is failing, have you introduced any recently that may have modified a build phase? Commented May 21, 2021 at 9:40
  • no, nothing apart installing new dependecies Commented May 21, 2021 at 12:33

2 Answers 2

3

Finally I found the solution, run this command in your project folder from temrinal:

react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ./ios/main.jsbundle
Sign up to request clarification or add additional context in comments.

1 Comment

Sadly, this solution did not work for me. :-\
0

enter image description here

In my case it was unable to resolve module 'react-native-audio' and mistakely copied ../components/react-native-audio from somewhere else..

I hope you had the same error and hope it helps

1 Comment

Thank you very much Rahul, I've already had found a solution, but thanks again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.