I am getting a bunch of clang errors when building for --xcode --debug on a fresh clone using Xcode 10 and Mojave.
Here's one of them:
clang: error: no such file or directory: '/Users/Labs/Documents/swift-source/build/Xcode-DebugAssert/swift-macosx-x86_64/stdlib/public/runtime/Swift.build/Debug/swiftRuntime-macosx-x86_64.build/Objects-normal/undefined_arch/Array.o'
For some reason the undefined_arch folder isn't created. Has anybody encountered this?
dan-zheng
(Dan Zheng)
2
Yes, I started encountering this since August. 
My gnarly workaround is:
- Edit the
build/Xcode-DebugAssert/swift-macosx-x86_64/Swift.xcodeproj/project.pbxproj file.
- Replace all instances of
undefined_arch with x86_64.
- Rebuild.
If someone knows a robust fix, I'm interested.