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

◇◆丶佛笑我妖孽 提交于 2019-11-27 12:47:47

问题


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?


回答1:


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

Select pods of your project

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




回答2:


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.




回答3:


Follow these steps and change nay required pod version.




回答4:


The solution for me was to update from xcode 10.0 to 10.3 which supports Swift 5.0



来源:https://stackoverflow.com/questions/55585062/xcode-keeps-showing-1-swift-version-5-0-is-unsupported-supported-versions-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!