command phasescriptexecution failed with a nonzero exit code
Yoodley is reader-supported. When you buy through links on our site, we may earn an affiliate commission.
The Xcode 11 error observe "Command PhaseScriptExecution failed with a nonzero exit code" tin can be problematic for developers. This could indicate that an awarding or script is not performance properly. To troubleshoot the problem, some potential remedies tin exist tried.
Solution #1
- In your Terminal app, navigate to the Xcode projection binder.
- Type and run the post-obit command: pod disintegration
- Run the following command: install pod
- Relaunch Xcode and navigate to Product > Make clean Build Folder.
- Restart your app.
Solution #ii
- Navigate to Keychain Access.
- From the login menu, select Lock and unlock again.
- Open Xcode > Clean Xcode Project > Restart your build.
- If neither of these alternatives work, you can contact Apple tree for assistance.
What is XCode?
Xcode is an integrated development environment (IDE) and code editor adult by Apple to assist developers in the development of Apple products, including mobile applications for iOS and desktop applications for macOS.
Xcode is a complete development environs 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. Information technology is bachelor for both Mac and Windows platforms.
How to Download Xcode and Install it on Your Mac?
The post-obit is a step-by-pace guide on installing Xcode:
- Obtain Xcode.
- Install the command-line utility on your computer.
- Open the new version of the program.
- Delete any files that you don't need.
Please keep in mind that nosotros have included a number of Last commands in the stages below. These instructions should be typed into the current working directory of your computer. This eliminates the requirement for y'all to browse to a specific folder on your computer.
In order to avoid entering the instructions in the following steps, you lot tin can first type <cd> earlier typing the commands in the following steps. This will take you back to the domicile folder where y'all started.
Step #one: Download Xcode
- Navigate to the "more" surface area of Apple's developer website.
- Log in using your iTunes account id.
- Enter the desired version and download the Xcode x x ten.zilch file.
- Once the file has been downloaded, double-click the.xip extension to unpack it. Your reckoner will extract it to the same location where yous downloaded it. This extraction procedure is fully automatic. After you've clicked on the.xip file, there'south aught else you need to do. This will merely take a few minutes.
- Add together the awarding to the Applications folder by dragging information technology there.
Step #2: Install the command line tool (CLT)
Go to the app developer's website and get the command line tool to update the CLT:
<dmg>
If y'all accept never installed Xcode before, you may be able to update using your Terminal instead of accessing the developer website past entering <xcode-select —install>.
After the.dmg file has finished downloading, double-click it to open information technology.
To install the CLT, double-click the box and follow the on-screen instructions. It will just take a few moments to cease.
At the end of the installation, it may ask if you desire to take this to the trash bin. When it says this, information technology'south referring to moving the.dmg file to the trash can, because yous should no longer crave this file.
Step #3: Open Xcode
Navigate to the Applications folder and launch the new version of Xcode. Make sure you open the correct programme if you renamed Xcode.
You may be prompted to install extra components by Xcode. Install should be clicked. This volition only take a few moments.
Check that your default Xcode version is the i you merely downloaded while it'south installing:
- Type <mash config> in the Last window.
- There should be "CLT" and "Xcode" versions, in addition to everything else.
Xcode volition launch after the components accept been installed. Yous should be able to smoothly pick upwardly by work and keep where you left off*.
*Delight keep in mind that if you utilise whatever proxy tools, such as Charles, yous volition have to re-install those certificates in your simulator.
Check which device yous are attempting to launch if yous encounter any 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 more simulators" from the drop down option to add the device.
Step #4. Delete the files
If you don't require older versions of Xcode on your figurer, 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 you just downloaded.
How to Offset Using Xcode to Build Your React Native iOS Apps?
If yous don't already take Node and Watchman installed, yous can install them with Homebrew past running the following concluding commands:
<brew install watchman brew install node>
While you are most likely already familiar with these as a React Native developer, it is a practiced idea to install Node 10 or later.
You will, of class, need to install Xcode. You may go it from the app shop by clicking here. Then you lot'll need CocoaPods, which maintains library dependencies for your Xcode applications. Equally a result, install using:
<cocoapods sudo gem install>
To begin a new project, navigate to the location where you want to salve it, then type in your last,
<npx react-native init <the proper noun of your new project>>
When you open your project in your code editor, you'll notice that it contains some average code. Only type to execute your project and observe it 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 "command phasescriptexecution failed with a nonzero exit code"
Post a Comment