Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0" error in Xcode 10.2?

I'm trying to run downloaded from app, try to open in Xcode and have an error:

" Showing Recent Messages
:-1: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'SimpleWeather')"

Screenshot added

like image 557
vlad uvarov Avatar asked Sep 29 '22 17:09

vlad uvarov


People also ask

Which Xcode supports Swift 3?

Swift 3.3 was only supported in Xcode 9.3; Swift 3.4 was supported in Xcode 9.3. 1 and 9.4. Swift 3.3 was supported in Xcode 9.3 and 9.3.


2 Answers

Select the target 'SimpleWeather' in the project and change language version Target->build setting -> Swift compiler language -> select 5, 4.2 etc

image of build setting for changing compiler language

like image 127
Xeneka Avatar answered Oct 08 '22 18:10

Xeneka


******** 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.

enter image description here enter image description here

like image 84
Kingsley Mitchell Avatar answered Oct 08 '22 20:10

Kingsley Mitchell