I have installed swift pods for the obj c project. I got this error when I was trying to build it.
I have gone through all the solutions like deleting derived data, cleaning the build folder. Swift Compiler_Language also missing in the XCode 10. Added user-defined setting too, even it didn't work.
Select your app target then goto build setting, search for swift
set the swift language version from the dropdown.