YOCKOW
(YOCKOW)
March 24, 2025, 9:52am
4
That documentation you quoted is for swift-foundation
, not for swift-corelibs-foundation
.
Indeed it's hard to develop swift-corelibs-foundation
though:
Once upon a time, we were able to develop SwiftFoundation only with Xcode, latest toolchain, swift-corelibs-xctest repo, and swift-corelibs-foundation repo.
Nowadays, we can't do so because:
SR-12177 hinders our using latest toolchain to run TestFoundation.
Xcode's default toolchain lacks some(all?) SPIs and can't compile SwiftFoundation. (For example, "Cannot find '_forEachField' in scope" errors occur because @_spi(Reflection) import Swift imports no SPI symbols.)
Foundation overlay …