MPMusicPlayerController not found by autocompletion in xcode

Hi guys,

I am trying to build a simple music player on mac OS. Just it seems that Xcode cannot see MPMusicPlayerController or any MPMusic...

I did import MediaPlayer
I added MediaPlayer framework to Build Phases.

Any ideas why it is not working/showing up?

Thanks
The error is: Cannot find 'MPMusicPlayerController' in scope

I have the latest version OS Catalina and xcode 12

Could be a bug?

Same. The documentation doesn't say what to import, if anything.

Nor does it say what the difference is between any of the MPMusicPlayer stuff and SystemMusicPlayer and ApplicationMusicPlayer. It's a mess.

MPMusicPlayerController not found by autocompletion in xcode
 
 
Q