Wanted to play around with MusicKit on MacOS now that we don't need to create JWT tokens manually anymore. But currently when I try to import MusicKit to a MacOS project, compiler is telling me
MusicKit is not available when building for macOS. Consider using
#if !os(macOS)
to conditionally import this framework.
I'm currently on macOS 12.0.1 myself, but still can't get it to build. I also tried bumping the deployment targets to 12.0 (although in the dropdown 11.3 was the latest) but doing this caused the compiler the yell at me again. I'm on Xcode 13.0
Am I missing something obvious?
CodePudding user response:
Xcode 13.0 targets Big Sur (macOS 11).
You need (at least) Xcode 13.1 RC to develop apps for macOS Monterey (macOS 12).