Command CompileSwift failed with a nonzero exit code in Xcode 10

Jordi Gámez picture Jordi Gámez · Sep 18, 2018 · Viewed 131k times · Source

Good afternoon,

After updating to the latest version of Xcode at the moment (version 10.0) the project is unable to build because it found some errors regarding some "Command CompileSwift failed with a nonzero exit code" error.

How do I solve this errors? They appear in most of the Pods (I use CocoaPods) I use inside my project.

I have tried updating the pod version and the pods to the latest version available, but the problem is still there.

I have searched a lot through the web and there is very little information regarding this issue.

Regards.

Answer

Mahgol Fa picture Mahgol Fa · Oct 26, 2018

For me, just cleaning project works using ShiftCommandK & OptionShiftCommandK.