USES Xcode for code writing, and the following error has been reported during the compilation process when the new project code is pulled down during project development.
Command PhaseScriptExecution failed with a nonzero exit code
p>
after searching on the Internet, most of the solutions given on the Internet were as follows. However, after I tried, the problem was not solved, but more mistakes were reported. Therefore, I consulted my tutor again, and finally got the solution.
encountered this bug hint when running a project, which could not be compiled. This is actually a bug caused by Xcode10. Solution: Select File -> in Xcode menu bar; Workspace Setting -> Choose Legacy Build System to rerun.
The primary cause of
is that the workspace is full, leading to code compilation errors, and there are roughly two ways to solve this problem.
(1) enter the code working cache folder of Xcode to clean manually ( is error-prone, is not recommended)
(2) use only the cleaning method provided by Xcode directly. Xcode will automatically link the working file after cleaning the workspace ( will not make mistakes, is recommended)
because the second method is easier to work with and less likely to go wrong, we use this method directly in the solution.
ii. Solution
1. First in Product -> Scheme selects the main code module for the current project
2. Select Product -> Clean Build Folder Clean workspace
3. Recompile the project code after
p>
Read More:
- Command PhaseScriptExecution failed with a nonzero exit code
- Command codesign failed with a nonzero exit code or revoke certificate for IOS / Xcode problems
- Command MergeSwiftModule failed with a nonzero exit code (Xcode12.5.1)
- Command CompileSwift failed with a nonzero exit code
- Xcode: error: linker command failed with exit code 1(use -v to see invocation) or libstdc++.6.0 is missing
- Xcode ffmpeg Error:/clang:1:1: linker command failed with exit code 1 (use -v to see invocation)
- IOS error: linker command failed with exit code 1 solution
- command/usr/bin/codesign failed with exit code 1- code sign error
- Flutter – iOS: Command /bin/sh failed with exit code 255
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- iOS clang: error: linker command failed with exit code 1 (use -v to see invocation)
- Command /usr/bin/codesign failed with exit code 1
- Xcode:Task failed with exit 1 signal 0 {
- Error: Command ‘/ usr / bin / clang’ failed with exit status 1 solution for Mac OS installation
- What about ibtool failed with exit code 255? processing method
- Python MAC installation mysqlclient package error “error: Command ‘clang’ failed with exit status 1” solution
- Python Mac installs mysqlclient package error “error: command’clang’ failed with exit status 1” solution
- Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x3 My solution
- [solution] MAC: stack error: ` gyp ‘failed with exit code:1
- Process finished with exit code 0 error reporting solution