I managed to get around this by manually adding some Swift parameters to the project.pbxproj file.
In the attribute block of the PBXProject section, add:
LastSwiftUpdateCheck = 0720;
In the XCBuildConfiguration section, add this to the Debug build settings for the project (the first and larger settings block):
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
And add this to your Debug build settings for the purpose:
OTHER_SWIFT_FLAGS = "-DDEBUG";
And this is for release build settings for the purpose:
OTHER_SWIFT_FLAGS = "";
When you reopen the project, the Swift settings will be available.
source share