How To: Sync music from two computers to iPhone

So you have an iPhone and know how to sync your music and movies via iTunes, but is it possible to connect your iPhone to two computers to sync music and movies? For example, can I sync music on my iPhone to both a home and work computer? The answer is yes, if you follow these few steps!

How to sync music from two or more computers to iPhone

While you can now sync data such as contacts and calendars from two computers to your iPhone, iTunes does not normally allow the iPhone to load music or movies from more than one computer. If you’ve tried to sync music from more than one computer to your iPhone, you’re likely familiar with this warning:

The iPhone “xx” is synced with another iTunes library. Do you want to erase this iPhone and sync with this iTunes library?

However, there is an easy fix that will allow you to sync your iTunes music from two computers to your iPhone – just follow these simple steps.

  1. Backup your iTunes Music Library – both “iTunes Music Library.xml” and “iTunes Music Library” (Mac) or “Tunes Music Library.itl” (PC) – on each computer. Don’t skip this step!
  2. FIRST COMPUTER

  3. On the machine you currently sync iPhone music with, right click the “iTunes Music Library.xml” file and open with a text editor such as Textedit or Notepad.
  4. Find the entry <key>Library Persistent ID<key> and write down on paper the exact 16-digit ID listed between the <string> values, making note of CAPITAL LETTERS. (For example, <string> 8C5D433F6DBCB74J) Keep this number handy – you will need it later!
  5. For this tutorial, we will call this the FOX ID NUMBER.
  6. Close the “iTunes Music Library.xml” file.
  7. SECOND COMPUTER

  8. On the second computer you want to sync the iPhone with, ensure that iTunes is *not* running, then right click the “iTunes Music Library.xml” file and open with a text editor such as Textedit or Notepad.
  9. Find the entry <key>Library Persistent ID<key> and write down on paper the 16-digit ID listed between the <string> values. (For example, <string> 8C5D433F6DBCB74J). If you are comfortable, you can also use the computer’s COPY command to note this number after writing it down.
  10. For this tutorial, we will call this the RABBIT ID NUMBER.
  11. On the second computer, replace the current RABBIT ID NUMBER listed between the <string> values with the FOX ID NUMBER from the first computer, making careful note of capital letters.
  12. Save and close the “iTunes Music Library.xml” file.
  13. For the next steps, you will need a hex editor on your computer. I suggest you try the free HexEdit (MAC) or the free trial version of UltraEdit (PC), but any HEX editor will do just fine. You only need this software on the SECOND computer.

  14. Launch your Hex Editor program and open “iTunes Music Library” (Tunes Music Library.itl on PC)
  15. From the EDIT menu, select FIND AND REPLACE.
  16. In the Find & Replace box, ensure that HEX is selected (not ASCII) and enter the RABBIT ID NUMBER you copied from this computer on the FIND line. In the REPLACE line, enter the FOX ID NUMBER you copied from your first computer. Choose “replace all”. There should be just one instance found and replaced. Save the file and close your Hex Editor.
  17. SUCCESS!
  18. Start iTunes on your second computer and plug in your Iphone. You will now be able to manually sync music to your iPhone from your second computer without losing music from your first computer.

    Trouble? Simply replace your modified iTunes Music Library.xml” and “iTunes Music Library” (Mac) or “Tunes Music Library.itl” (PC) with the backups from step one to undo these modifications.

1 thought on “How To: Sync music from two computers to iPhone”

  1. Hi matey
    Thanks for the help on this. I was a little nervous, but simple instructions helped.
    The only problem is I lost Album Artwork. I changed the Album Artwork Folder Number to the new Hex string but that didn’ t work, so I just searched for Album Artwork again and that solved the problem.
    Cheers, Rich.

Comments are closed.