Bunch of clang errors on a fresh clone

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?

Yes, I started encountering this since August. :frowning_face:
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.

I followed the instructions listed here: https://bugs.swift.org/browse/SR-7961 and got it to work

1 Like
Terms of Service

Privacy Policy

Cookie Policy