banner



phasescriptexecution failed with a nonzero exit code

FIXED: Xcode Command PhaseScriptExecution failed with a nonzero exit code

Yoodley is reader-supported. When you lot buy through links on our site, we may earn an affiliate committee.

The Xcode 11 error discover "Command PhaseScriptExecution failed with a nonzero exit code" can exist problematic for developers. This could indicate that an awarding or script is not performance properly. To troubleshoot the trouble, some potential remedies can be tried.

Solution #ane

  • In your Last app, navigate to the Xcode project folder.
  • Type and run the following command: pod disintegration
  • Run the following control: install pod
  • Relaunch Xcode and navigate to Product > Clean Build Folder.
  • Restart your app.

Solution #2

  • Navigate to Keychain Access.
  • From the login carte du jour, select Lock and unlock again.
  • Open Xcode > Clean Xcode Project > Restart your build.
  • If neither of these alternatives work, you tin contact Apple for assistance.

What is XCode?

Xcode is an integrated evolution environment (IDE) and code editor adult by Apple to help developers in the evolution of Apple products, including mobile applications for iOS and desktop applications for macOS.

Xcode is a consummate development surroundings that includes a collection of integrated tools and apps that are designed to aid with all evolution processes, including testing, building, deploying, compiling, and debugging. It is available for both Mac and Windows platforms.

How to Download Xcode and Install it on Your Mac?

The following is a footstep-by-step guide on installing Xcode:

  • Obtain Xcode.
  • Install the control-line utility on your estimator.
  • Open the new version of the plan.
  • Delete whatsoever files that y'all don't need.

Please keep in mind that we accept included a number of Terminal commands in the stages below. These instructions should be typed into the electric current working directory of your calculator. This eliminates the requirement for you lot to browse to a specific folder on your reckoner.

In order to avoid inbound the instructions in the following steps, you can first blazon <cd> earlier typing the commands in the post-obit steps. This will have you back to the dwelling folder where yous started.

Step #1: Download Xcode

  • Navigate to the "more than" area of Apple tree's programmer website.
  • Log in using your iTunes account id.
  • Enter the desired version and download the Xcode 10 x x.zip file.
  • In one case the file has been downloaded, double-click the.xip extension to unpack it. Your computer volition extract information technology to the same location where you downloaded information technology. This extraction procedure is fully automated. After you've clicked on the.xip file, there'due south nothing else you demand to do. This volition only take a few minutes.
  • Add the application to the Applications folder by dragging it in that location.

Step #ii: Install the control line tool (CLT)

Go to the app developer'south website and get the command line tool to update the CLT:

<dmg>

If you lot take never installed Xcode before, you may be able to update using your Terminal instead of accessing the programmer website by inbound <xcode-select —install>.

Afterward the.dmg file has finished downloading, double-click it to open up information technology.

To install the CLT, double-click the box and follow the on-screen instructions. It will simply take a few moments to finish.

At the cease of the installation, it may enquire if you want to take this to the trash bin. When it says this, it's referring to moving the.dmg file to the trash tin, because you should no longer crave this file.

Step #three: Open Xcode

Navigate to the Applications binder and launch the new version of Xcode. Brand sure you lot open the correct programme if yous renamed Xcode.

You may be prompted to install extra components past Xcode. Install should be clicked. This volition but accept a few moments.

Check that your default Xcode version is the 1 you merely downloaded while it's installing:

  • Type <brew config> in the Terminal window.
  • In that location should exist "CLT" and "Xcode" versions, in addition to everything else.

Xcode volition launch after the components have been installed. You should exist able to smoothly pick up past work and continue where you left off*.

*Please go on in mind that if you use any proxy tools, such every bit Charles, you will have to re-install those certificates in your simulator.

Cheque which device yous are attempting to launch if you encounter whatsoever difficulties while attempting to develop or run a projection. The new version may not recognise the device you previously used. If this is the case, click on the device and select "Add together more simulators" from the drop down option to add the device.

Step #iv. Delete the files

If you lot don't require older versions of Xcode on your computer, you can uninstall them to free up disc space.

You tin can also remove the CLT.dmg file and the.xip file from the version yous just downloaded.

How to Start Using Xcode to Build Your React Native iOS Apps?

If you don't already have Node and Watchman installed, you lot can install them with Homebrew past running the following final commands:

<mash install watchman brew install node>

While you are near likely already familiar with these as a React Native developer, it is a good idea to install Node 10 or later on.

You will, of course, need to install Xcode. You lot may get it from the app store by clicking here. Then yous'll demand CocoaPods, which maintains library dependencies for your Xcode applications. As a result, install using:

<cocoapods sudo gem install>

To begin a new project, navigate to the location where you lot want to salvage it, so type in your last,

<npx react-native init <the name of your new project>>

When yous open your projection in your code editor, you'll observe that it contains some average code. Only type to execute your project and observe information technology on a mobile device simulator:

<get-go npx react-native

run-ios npx react-native>

Source: https://yoodley.com/xcode-command-phasescriptexecution-failed/

0 Response to "phasescriptexecution failed with a nonzero exit code"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel