The problem is fixed by using a legacy version of Xcode (11.0 ) which includes Swift 5.1. I think when Apple open sourced Swift it put Xcode in a never ending chase to try to keep up with all the improvements from the community. Maybe Apple should open source Xcode as well. Here is the link: Xcode 11.xip