Track your outdoor runs with access to the Apple Music catalog, personal recommendations, and your own personal music library.
- Note: This sample code project is associated with WWDC22 session 110347: Explore more content with MusicKit.
This sample code project doesn't work in the simulator. Before you run the sample code project in Xcode, perform the following steps:
-
In Xcode's Project navigator, select the project, and click the Signing & Capabilities tab.
-
From the Team pop-up menu, choose your developer team.
-
In the Bundle Identifier field, enter a new bundle ID for the MusicMarathon target. The bundle identifier for the project has an associated App ID, so you need a unique identifier to create your own App ID. Use a reverse-DNS format for your identifier, as Preparing Your App For Distribution describes.
-
In Safari, visit the Certificates, Identifiers, and Profiles section of the Apple Developer website.
-
Select Identifiers, and click the Add button to create a new App ID for
MusicMarathon
. Follow the steps until you reach the Register an App ID page. -
For the Bundle ID, select Explicit, and enter the bundle ID from step 2.
-
Click the App Services tab, and select the MusicKit checkbox.
-
Complete the App ID creation process.
After creating your App ID, your Xcode project needs no additional configuration. The MusicKit app service is a runtime service that automatically associates with your app's bundle ID.