After migrating to XCode 10, I am unable to build. I tweaked with Module name in Target build settings to fix something else but then changed it back to $(PRODUCT_NAME). But now this error:
<unknown>:0: error: module name "MyApp-Swift" is not a valid identifier
Command CompileSwiftSources failed with a nonzero exit code