How to Convert my Swift Code back to 2.3

后端 未结 3 825
无人共我
无人共我 2021-01-20 03:46

I downloaded the XCode Beta 8 and converted all of my swift code from Swift 2.3 to Swift 3. It has caused way too many problems for me and caused me to start a project I\'ve

3条回答
  •  生来不讨喜
    2021-01-20 04:16

    On the build settings for the target switch "use legacy swift version" from no to yes.

    That would switch the compiler back to the sane 2.x but won't change the code itself. The scope is limited to the new targets created for projects on older version of swift.

    We have a potential issue though, with that what is a "legacy version" in the future version of Xcode might change.

提交回复
热议问题