On macOS Big Sur Beta 3 / Xcode 12 Beta 3 when i create vanilla macOS SwiftUI / App project and import Photos framework i get the following compile error:
Can i set the swift compiler version from Xcode somehow?
The code i try to compile:
It was compiling fine on Beta 2 in one of my projects. Created vanilla project just to make sure there wasn't something odd in project config.
Code Block Failed to build module 'Photos' from its module interface; the compiler that produced it, 'Apple Swift version 5.3 (swiftlang-1200.2.22.2 clang-1200.0.25.1)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3 (swiftlang-1200.0.22.4 clang-1200.0.25.1)'
Can i set the swift compiler version from Xcode somehow?
The code i try to compile:
Code Block swift import SwiftUI import Photos struct ContentView: View { var body: some View { Text("Hello, world!").padding() } }
It was compiling fine on Beta 2 in one of my projects. Created vanilla project just to make sure there wasn't something odd in project config.