musickit

Integrate MusicKit catalog search, playback, and Now Playing metadata in iOS apps.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/harshav167/build-ios-apps --skill musickit-harshav167
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: musickit
Source: https://github.com/harshav167/build-ios-apps/tree/main/skills/musickit
Command: npx skills add https://github.com/harshav167/build-ios-apps --skill musickit-harshav167

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

MusicKit and MediaPlayer integration for iOS apps to search catalog, manage playback, and publish Now Playing metadata, reducing boilerplate and ensuring consistent UX.

Core Features & Use Cases

  • Catalog search and playback with MusicCatalogSearchRequest and ApplicationMusicPlayer
  • Now Playing info synchronization via MPNowPlayingInfoCenter and MPRemoteCommandCenter
  • Cloud library awareness and subscription gating to control access and sync

Quick Start

Configure MusicKit in your app, enable Now Playing updates on track changes, and wire a simple search-and-play flow for a selected Song.

Frequently Asked Questions about musickit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Apple Music playback and catalog search into my iOS app?

To integrate Apple Music playback, use MusicKit's MusicCatalogSearchRequest for queries and ApplicationMusicPlayer for audio playback within your iOS app. This combination handles end-to-end music search and playback while enforcing proper user authorization.

How do I update Now Playing metadata on the iOS lock screen?

To update Now Playing metadata on the lock screen, synchronize track information using the MPNowPlayingInfoCenter from the MediaPlayer framework. You must configure this alongside MPRemoteCommandCenter to handle remote playback controls properly.

Do I need an Apple Music subscription to use MusicKit playback features?

Yes, MusicKit playback requires an active Apple Music subscription. You must implement cloud library awareness and subscription gating to control access, sync user libraries, and ensure a compliant playback experience for authorized users.

What permissions and entitlements are required for MusicKit integration?

MusicKit integration requires specific Apple Developer entitlements and explicit user permissions to access the music catalog. You must configure these prerequisites carefully and implement robust error handling to ensure a safe, compliant iOS app experience.

Why is my ApplicationMusicPlayer not playing tracks from catalog search?

ApplicationMusicPlayer playback failures often stem from missing user authorization, lacking an active Apple Music subscription, or unhandled cloud library checks. Ensure proper entitlements are set and implement careful error handling during the search-and-play flow.