Command PhaseScriptExecution failed with a nonzero exit code

showing error Command PhaseScriptExecution failed with a nonzero exit code.

When I am trying to play the ios project from a M2 chip Macbook Pro, it is working fine in Intel Chip.


showing error when trying to play from vscode--

The following build commands failed:

PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/safwan/Library/Developer/Xcode/DerivedData/skizzlehr-aqdqtsvzpusqzbchycwsluqghbka/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-rncore.build/Script-46EB2E00025130.sh (in target 'React-rncore' from project 'Pods')

(1 failure)

MacBook Pro 13″, macOS 14.2

Posted on Jan 1, 2024 9:37 PM

Reply

Similar questions

3 replies

Jan 5, 2024 6:45 AM in response to safwanc123

A script intended to run during your app's build process encountered an error, indicating a problem with the script itself or its execution environment.


Troubleshooting Steps:


  • Review build log: Identify the problematic script.
  • Check script code: Inspect for errors or incompatibilities.
  • Clean build folder: Clear potential issues.
  • Manage Node.js version: Ensure correct version and settings.
  • Address pod issues: Reinstall or update CocoaPods or Carthage.
  • Verify file paths: Ensure accuracy and accessibility.
  • Isolate the issue: Disable or remove the script temporarily.
  • Update Xcode and tools: Use latest versions.
  • Consult documentation: Refer to script-specific resources.


[Edited by Moderator]

Jan 2, 2024 9:18 AM in response to safwanc123

You’re not really running an app on iOS or macOS here except incidentally, rather you’re running Meta React, a cross-platform framework.


Folks around here tend to know the Apple tools and frameworks, but you’re effectively not using that.


Check in the Meta React-related forums, or contact the folks supporting React for assistance.


Here are the fora where React suggests asking questions: https://react.dev/community

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Command PhaseScriptExecution failed with a nonzero exit code

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.