recently when I was doing ios development I had this problem:
Command CompileSwift failed with a nonzero exit code
the key is that there is no error in the code, and then the project will run normally, so why would there be such a strange error in the compilation?A random Internet search, said to change the contents of the PodFile, I am a small new, do not dare to change the podFile thing, in case something new problem. After a few final searches, you can simply press the following shortcut combination:
shift + commond + k
The
command is available as clean build folder, which is also available on the xcode toolbar product. After analysis, this error should be caused by the compilation cache of Xcode, but there is no problem with the project code itself and it can run normally. As long as the previous compilation cache is cleared, it will be ok to recompile and run.
problem solved!
Read More:
- About Xcode command phasescriptexecution failed with a nonzero exit code solution
- Command PhaseScriptExecution failed with a nonzero exit code
- Command MergeSwiftModule failed with a nonzero exit code (Xcode12.5.1)
- Command codesign failed with a nonzero exit code or revoke certificate for IOS / Xcode problems
- command/usr/bin/codesign failed with exit code 1- code sign error
- Flutter – iOS: Command /bin/sh failed with exit code 255
- iOS clang: error: 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
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- 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)
- What about ibtool failed with exit code 255? processing method
- Git did not exit cleanly (exit code 128)
- command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- [solution] MAC: stack error: ` gyp ‘failed with exit code:1
- Finished with error: Gradle task assembleDebug failed with exit code 1
- command ‘gcc‘ failed with exit status 4
- Install Python package under MacOS: “error: Command ‘GCC’ failed with exit status 1”
- Cargo invoice has failed: error: exit code: 101