Select the target 'SimpleWeather' in the project and change language version Target->build setting -> Swift compiler language -> select 5, 4.2 etc
******** Easiest way: **********
1.Click on PODs in the left column.
2.In the centre column select the pod you want, then navigate to "build settings" in the top right panel.
3.Then search "Swift Language Version" and change to a known version.
For Xcode 10.1, select your Pods File
-> Go to Build Settings -> Choose your Pod -> Search "Swift" -> Navigate to "Swift Language version" -> Set to desired language version.