Swift does not support the SDK 'MacOSX10.13.sdk'

After installing Xcode 10, i receive the below error message.



:0: error: Swift does not support the SDK 'MacOSX10.13.sdk'
Command CompileSwiftSources failed with a nonzero exit code



I open the same code with Xcode 9.4.1 , the code just run's fine.


One thing which i tried was to set the Base SDK to macOS 10.14 , which unfortunatley did not work too.

Replies

How do you launch compilation ? From within XCode or via Terminal ?


If from Terminal, have a look here:

h ttps://forums.swift.org/t/error-building-swift-swift-does-not-support-the-sdk-macosx10-13-sdk/13701

I launched from XCode and just run the app. I did not try from terminal

Did you try a Clean Build Folder ? (Product menu)

I tried Clean folder, delete dervied data folder. I am not sure from where it is picking up macOSX 10.13 , even though i explicity say macOSX 10.14