/AppleMusicBackup

A tool to backup your Apple Music library, and transfer songs from one Apple ID's library to another.

Primary LanguageSwift

AppleMusicBackup

This repo can help you backup your Apple Music library, and transfer them from one Apple ID to another.

Usage

You need to have Apple Music subscription to do following operations.

  1. Sign in you Apple ID, click Get Songs to fetch the list of your Apple Music library songs.
  2. While in app, click Save to File to save a .txt file of a list of song ids somewhere (like iCloud Drive).
  3. Sign in another Apple ID, click Import from File and select the file from last step to import these songs into your current library.

Steps

  1. Follow steps here to generate a MusicKit identifier and a private .p8 key file.
  2. Install pip if you haven't.
  3. Install these two packages.
sudo pip install pyjwt
sudo pip install cryptography
  1. Copy your Developer Team ID, MusicKit ID and private key in the .p8 file into musictoken.py.
  2. Run python(3) musictoken.py
  3. Copy the generated token to AppleMusicBackup/DeveloperToken.swift.
  4. Remember to generate a new token after 24 hour expiration time.
  5. Install CocoaPods if you haven't.
  6. Run pod install.
  7. Open AppleMusicBackup.xcworkspace, import your .mobileprovision file and run.