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

后端 未结 15 2287
情歌与酒
情歌与酒 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:17

    I am new to iOS development. After I followed all of the above answers, I still got the same error. I was using Xcode 11 and I downloaded the "FoodTracker" sample from Apple Developer web site and I got the same error after trying to build it. I found that the project has several settings referring to Swift language version after VIM the project file content. So, I resolved this by first setting the "Project > FoodTracker", and also "TARGETS > FoodTracker" and "TARGETS > FoodTrackerTests" the Swift Language Version to 5.0. Hope it helps.

    Setting Swift Language Version on Project and ALL Targets

提交回复
热议问题