I am getting the following error when building in Xcode 10.0 with swift 4.2:
This will resolve the issue as mine.