A reader sent in a question today regarding how he could sync his iPhone with his Mac and PC. This will work for Mac to Mac or Windows PC to PC. Ron writes:

“I have an iPhone that is synced with my PC, but I also use a MacBook Pro.

How do I sync with both PC/Mac? When I tried to sync with my new Mac, it

warns me everything on iPhone will be replaced by Mac (which is

empty).

I would like to use both PC/Mac and use my iPhone as “master” to sync

back. Is this possible?

Thanks,

Ron”

Prerequisites:

– 10 Minutes of your time

– On iPhone, iPod Touch, or iPod (Repeat for all devices you wish), select “Manually mange music and videos”

– Backup of iTunes Music

– iTunes closed

– Ability to find your iTunes folder: in Windows XP, its default location is in “My Music” and, for both Windows Vista and Mac OS, it is located in “Music”.

– Knowledge of how to open a file with a desired application on both Windows and Mac (however, you do not need to if using Mac to Mac).

– Download HexEdit for Mac or UltraEdit for Windows for the secondary machine with which you wish to sync

On the Primary Computer (with which the iPhone, iPod Touch, or iPod was first synced):

– Make sure iTunes is CLOSED!

– Backup the iTunes Library on the machine with which you wish to sync. Backup “iTunes Music Library.xml” and “iTunes Music Library” (or iTunes Music Library.itl on Windows). It is important that you back these files up to a safe location because we will be modifying the files.

– Retrieve your iTunes Library ID. Open “iTunes Music Library.xml” with a text editor (TextEdit on Macs, Notepad on Windows). Find the entry after <string></string> tags, after “Library Persistent ID”. In the screenshot 8B6C633F7DACB74B is my iTunes Library ID. Copy this entry exactly to a piece of paper or email this to yourself. After you have stored the iTunes Library ID you may close the file.

On the Secondary Computer:

– Make sure iTunes is CLOSED!

– Retrieve your iTunes Library ID. Open “iTunes Music Library.xml” with a text editor (TextEdit on Macs, Notepad on Windows). Find the entry after <string></string> tags, after “Library Persistent ID”. In the screenshot 0E958526D15C67FAis my iTunes Library ID. Copy this entry exactly to a piece of paper or email this to yourself. Do NOT close the file yet!

– Replace the the iTunes Library ID, in my case 0E958526D15C67FA with the one from the computer (8B6C633F7DACB74B-iTunes Library ID from the Windows machine) the iPhone is already syncing with. Save the file, then close it.





– In Hex Editor open “iTunes Music Library” (iTunes Music Library.itl on PC)

– Choose “Find and Replace” from the Edit menu. Make sure the “Hex” matching is selected not ASCII. Find the iTunes Library IDs you found from both the primary and secondary computers.

– In the “Find” section, enter the iTunes Library ID of the secondary computer and, in the “Replace” section, enter the iTunes Library ID from the primary computer. There should be one match. Save the file and close.

Success!

You should now be able to sync your devices with two or more computers. Now, you will not be alerted by the annoying “Erase Your Data” prompt from iTunes.

If you have any questions or comments please leave them here. Tell us about your experience!