“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift."

前端 未结 7 1588
南方客
南方客 2021-02-02 14:27

Ever since I\'ve updated to Xcode 8.2 (GM seed, from the App Store), I have been stuck at the following error:

Use Legacy Swift Language Version” (SWIFT_V

7条回答
  •  [愿得一人]
    2021-02-02 14:57

    The phantom No answer will work. The real reason XCode is broken is because Apples XCode "use legacy setting" is really a Swift Version number. In XCode 8.1 'No' translated to 3.0.1, in XCode 8.2 'No' translates to 3.0. So you need to switch the version to Swift 3.0 . Which makes sense. Was a bug in XCode 8.1 I guess.

    My git diff:

    --- a/ios/myapp.xcodeproj/project.pbxproj
    +++ b/ios/myapp.xcodeproj/project.pbxproj
    @@ -1757,7 +1757,7 @@
                                    SDKROOT = iphoneos;
                                    SKIP_INSTALL = YES;
                                    SWIFT_OPTIMIZATION_LEVEL = "-Onone";
    -                               SWIFT_VERSION = 3.0.1;
    +                               SWIFT_VERSION = 3.0;
                                    TARGETED_DEVICE_FAMILY = "1,2";
                            };
                            name = Debug;
    

    I see a comment above that has the same answer just think it needs to stand out more.

提交回复
热议问题