I'm trying set playbackState like
Code Block swift MPNowPlayingInfoCenter.default().playbackState = .playing
But I receive an error in console.
Code Block [NowPlaying] [MRNowPlaying] Ignoring setPlaybackState because application does not contain entitlement com.apple.mediaremote.set-playback-state for platform
I tried to add it to applications *.entitlements file:
Code Block xml <key>com.apple.mediaremote.set-playback-state</key> <true/>
But after that I cannot even build my application due to signing error:
Code Block Provisioning profile "iOS Team Provisioning Profile: app.name" doesn't include the com.apple.mediaremote.set-playback-state entitlement.
I use a free development certificate if it is important. Xcode version is 12.4.
Did anyone face with same issue? What do I wrong? What should I do to solve an issue?
Thanks for any help!