Xcode 10 beta 6 compiler crash

This sounds like a known issue in batch mode, also brought up in this thread. Disabling batch mode should work around the crash.