Solved - Xcode command compileswift failed with a nonzero exit code error
November 06, 2020
command compileswift failed with a nonzero exit code :
This is probably one of the most commonly faced issue for any iOS developer. This issue comes mostly if you are pulling a new project, adding new pods, system update etc.
How to solve this :
A simple clean build can solve this issue.
Cmd + Shift + K
Cmd + B
It solves this issue most of the time but you can also try:
- restarting XCode
- pod install --repo-update
- restarting mac
- Cleaning derived data