issue fixed when building with Xcode beta3

It’s a big change in Swift by Apple.