Xcode keeps showing:-1: SWIFT_VERSION '5.0'

2020-02-08 06: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?

4条回答
Emotional °昔
2楼-- · 2020-02-08 07:26

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

查看更多
Juvenile、少年°
3楼-- · 2020-02-08 07:45

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

查看更多
兄弟一词,经得起流年.
4楼-- · 2020-02-08 07:45

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.

查看更多
你好瞎i
5楼-- · 2020-02-08 07:48

Follow these steps and change nay required pod version.enter image description here

查看更多
登录 后发表回答