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
- What about ibtool failed with exit code 255? processing method
- Android error installation failed with message invalid file
- Error: EBUSY: resource busy or locked, rmdir ‘
- Command codesign failed with a nonzero exit code or revoke certificate for IOS / Xcode problems
- Integrate native IOS plug-ins into the flutter project
- iOS clang: error: linker command failed with exit code 1 (use -v to see invocation)
- Xcode – pbxcp Error Repair – no such file or directory
- Flutter – iOS: Command /bin/sh failed with exit code 255
- Compiling OBS studio on MAC and windos platforms
- Automatically assigning platform `iOS` with version `8.0` on target `Runner`
- Error failed to build IOS project. We ran “xcodebuild” command but it exited wit
- java.lang.Error: Unresolved compilation problems
- Failed to find Build Tools revision 27.0.3
- Upload Appstore error itms-90725
- Vue project startup error: cannot find module XXX
- Could not find module ‘xxxxxxx‘ for target ‘arm64-apple-ios-simulator‘;
- Mac ports installation software prompts “warning: xcodebuild exists but failed to execute”
- NPM install error cb.apply is not a function
- In J2EE Tomcat webapps, there are only folder directories and no files