Command CompileSwift failed with a nonzero exit code in Xcode 10 [duplicate] October 10, 2022 by Tarik For me, just cleaning project works using ShiftCommandK & OptionShiftCommandK.