You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install Xcode 11.4, ensure selected with xcode-select
In command line: echo "import Foundation; print(Date())" | swift - (prints date)
brew install swiftgen
In command line: echo "import Foundation; print(Date())" | swift - (CRASHES)
Note: This crash did not occur with Swift 5.1 or earlier. It does not occur with the Swift REPL, only piping from stdin or executing a file with the swift command.
I initially assumed this was a Swift bug and filed a radar but Apple traced it to SwiftGen when they noticed that the Swift process was loading /usr/local/Cellar/swiftgen/6.1.0/lib/libswiftFoundation.dylib