Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unsupported swift version (SWIFT 5)

Tags:

xcode

swift

before you mark this question as a duplicate, I checked this question

and it didn't work for me.

how to fix this error:

error: SWIFT_VERSION '5.0' is unsupported, supported versions are: 3.0, 4.0, 4.2. (in target 'DropDown')
like image 835
MhmdRizk Avatar asked Apr 01 '19 09:04

MhmdRizk


2 Answers

For XCode 10.1, select your Pods File

Select Pod

-> Go to Build Settings -> Choose your Pod -> Search "Swift" -> Navigate to "Swift Language version" -> Set to desired language version.

enter image description here

like image 138
Deepak Chaudhary Avatar answered Nov 11 '22 19:11

Deepak Chaudhary


You have code which was compiled on the new Xcode 10.2 or the beta version which supports Swift 5. Update your Xcode to the latest version.

like image 44
Rakesha Shastri Avatar answered Nov 11 '22 19:11

Rakesha Shastri