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

Jaseel.Dev picture Jaseel.Dev · Apr 9, 2019 · Viewed 26.3k times · Source

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?

Answer

Ravi Ojha picture Ravi Ojha · Apr 9, 2019

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