可以转换为Swift 5 [英] Conversion to Swift 5 is available
问题描述
我在Xcode 10.2中收到此警告.
I'm getting this warning in Xcode 10.2.
Conversion to swift 5 is available
当我单击此错误时,它将打开此窗口
When i click this error it's opening this window
当我们点击下一步时,将会发生...
When we click NEXT what will happen...
推荐答案
swift的当前版本是swift5,仅在xcode 10.2中受支持,而您在xcode 10.2中使用的是swift4或swift4.2等其他版本.此警告意味着如果您单击此警告,将会有新版本的swift出现,您将收到一个弹出窗口,并会请求权限以将代码转换为最低版本的swift(现在为swift5).如果单击是",则弹出的xcode会自动将您的代码转换为新版本的swift(在您的情况下为swift5)
current version of swift is swift5 which only supported in xcode 10.2 and you are using another version like swift4 or swift4.2 in xcode 10.2 . This warning means that a new version of swift is available if you click this warning a you will receive a pop up and will ask for permission to convert your code in leatest version of swift (which is now swift5) . if you click yes to the pop up xcode automatically convert you code to newwst version of swift(which is swift5 in you case)
这篇关于可以转换为Swift 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!