How to fix “SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0” error in Xcode 10.2?

后端 未结 15 2335
情歌与酒
情歌与酒 2020-11-30 23:48

I\'m trying to run downloaded from app, try to open in Xcode and have an error:

\" Showing Recent Messages
:-1: SWIFT_VERSION \'3.0\' is unsu

15条回答
  •  时光说笑
    2020-12-01 00:16

    I opened up the file MyProject.xcodeproj (using VSCode editor)

    and I found some lines where

    SWIFT_VERSION = 3.0;

    (at about line 400 where it says /* Begin XCBuildConfiguration section */)

    Modify to SWIFT_VERSION = 5.0 or others. After that I was able build and run the project.

提交回复
热议问题