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