Search code examples
swiftuiswift-package-manager

SwiftUI: 'some' return types are only available in macOS 10.15.0 or newer - on MacOS Ventura


I have some strange error in my SPM.

Code example:

import SwiftUI

struct ExampleView: View {

  var body: some View {
    Text("Stub")
  }
}
    

Error:

'some' return types are only available in macOS 10.15.0 or newer

But I have macOS Ventura 13.0.1, & XCode 14.1. What could be the problem?

Thanks.


Solution

  • Problem solved.

    I needed to change simulator from Mac (by Default) to iPhone.

    enter image description here