How to build Swift 3 project on Xcode 9?

前端 未结 5 1189
南方客
南方客 2020-12-14 06:10

Xcode 9 Release Notes says that Swift 3 compilation is supported:

One compiler for Swift 4 and Swift 3, Swift 4 and Swift 3 targets c

5条回答
  •  北海茫月
    2020-12-14 06:35

    All the above answers are answering the wrong question. When using Xcode 9, you are using the Swift 4 compiler (even if you are using it to compile Swift 3 code) to fix this, recompile using the appropriate compiler/Xcode.

    If you are trying to do this via commandline, you can use sudo xcode-select -switch to switch between xcode versions. Good luck!

提交回复
热议问题