issue fixed when building with Xcode beta3

it’s a big change in Swift by Apple.