Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode keeps showing:-1: SWIFT_VERSION '5.0' is unsupported, supported versions are: 3.0, 4.0, 4.2.Any solution?

When I install facebook SDK pods into my ios project, It says ":-1: SWIFT_VERSION '5.0' is unsupported, supported versions are: 3.0, 4.0, 4.2. (in target 'FacebookCore')"

I am using swift 4.2 any solution?

like image 442
Jaseel.Dev Avatar asked Apr 09 '19 04:04

Jaseel.Dev


2 Answers

Change the podfile swift version like for any pod if you are getting this error like

Select pods of your project 

Select pod of your project

After then you follow the steps as described in the image and change the swift version for the pod next steps

like image 99
Ravi Ojha Avatar answered Sep 23 '22 11:09

Ravi Ojha


I am currently using Xcode 10.1. The "Targets" section is in another place of the interface.

Xcode 10.1 screenshot

Beyond that, the Ravi Ojha solution works fine as well.

like image 37
Al Herrera Avatar answered Sep 21 '22 11:09

Al Herrera