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

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

    I followed the instructions on this page and the error didn't resolve. Finally, went into

    $ vim MyProject.xcodeproj/project.pbxproj
    

    and found two instances where

    SWIFT_VERSION = 3.0;
    

    was still being referenced. I changed those to 5.0 and the error was gone. Not sure why those two were still there.

提交回复
热议问题