Want to sync your iPhone across multiple computers? It’s a bit of a hassle, but here’s how to do it in iTunes 10. You may remember a while back we explained how to do it with older versions of iTunes.
This fix comes from MacRumors forums user fasttimes. According to the post it works on both Mac and PC. Here it is. (Note: We have not tried this one yet, so use at your own risk).
Please hit the jump to read the full tutorial.
1) Uninstall iTunes on all your extra machines, and delete everything in the directory that has the iTunes Music Library.XML and iTunes Library.itl files.
2) Install iTunes 9.2 (you can find it here)
3) Follow these steps:
Apple only allows you to sync your iPhone with one iTunes library at a time. When you attempt to sync your iPhone to another computer, you get the following message.
Note: “Computer 1″ represents your usual computer, “Computer 2″ represents the new computer you would like to sync your iPhone to.
On “Computer 2″, backup “iTunes Music Library.xml” and “iTunes Music Library” (Tunes Music Library on Windows) safely.
Download a Hex editor.
1. On Computer 1, open “iTunes Music Library.xml” with Notepad and search (Ctrl+F) for ”<key>Library Persistent ID</key>”
2. Following ”<key>Library Persistent ID</key>”, copy the code between <string> and </string>
In this example it is “8B6C633F7DACB74B”.
3. On computer 2, find that same code, and replace it with the code from computer 1.
4. Open “iTunes Music Library” (iTunes Library.itl on Windows) using your Hex Editor on computer 2.
5. In the Hex Editor, go to Edit > Replace.
6. In “Find”, insert code from computer 2. In “Replace With”, insert code from computer 1. There should be one match.
7. Save this file. Close it.
4) Unplug your iPhone.
5) Launch iTunes with auto-sync turned OFF
6) Plug in your iPhone again. Check your iPhone’s App page in iTunes. Check the “sync” checkbox and you should not see the message about removing your old apps.
7) Right click on the iPhone and transfer purchases.
8) Now you should be able to install iTunes 10 and sync both machines.
[Credit to fasttimes - Link]




Accessories & Apps: Beta Testers Wanted
iOS Firmware/IPSW Download Guide
Legacy iTunes Download Archive
App Store Top Charts
Doesn’t seem to work with OS X Lion / iPhone 4 – when plugging in the device with iTunes 9.2 I get an alert:
Ignore that. Despite that message, after installing 10.4 it works. Thanks!
OS X Lion won’t allow you to delete iTunes. If you try, you are met with, ‘“iTunes” can’t be modified or deleted because it’s required by Mac OS X.’
Thanks, we gonna take a look and see if steps have to change because of that
I just got it working on Lion. You don’t need itunes 9.2. Close itunes and itunes helper. Then edit the two files as described. After that is done, clear the itunes cache folder and preferences. Then launch itunes again and voila!
Brilliant, so simple.
Sorry if this a dumb question, I’m new to macs but I’m a quick learner. How do you clear the cache and preferences?
I tried the method above, but it didn’t work.
OS X 10.6.8.
iTunes 10.4.1.
iOS 4.3.1.
Just an update:
I was able to get iTunes to generate a new iTunes Library.itl by opening up the iTunes Library.itl in TextEdit and completely clearing it and saving it. The new file has the Library Persistent Id that I had transfered from my other computer already. So now it works.
Thanks JF, it worked for me!
Same here! Great solution! Thanks!
(OS X 10.6.8, iTunes 10.5, iPhone 4)
Worked here as well!
Thanks all!
you my friend are a legend! been trying everything else under the sun and hasn’t worked, champ.
You are a genius! It is such an easy fix!!!
worked like a charm, thanks
I’ve updated to iOS5 on my iPhone and it needs the latest iTunes to work, does anyone know a fix for this?
that is the only way, update to the latest itunes
Well that did not work at all. The warning message is gone, so it seemed like it was going to work. Now I have a phone with nothing on it but the default apps.
It did make a backup before syncing, but even after restoring from backup, nothing is there. Looks like I will have to restore from main computer at home.
Previous post said I lost everything when trying this trick, but after downloading all purchased apps and tunes into the new installation of iTunes, I was able to restore iPhone back to the backup it made when first syncing. So this works, just be aware that nothing is copied from phone into iTunes, you have to first populate iTunes with stuff before it will be synced to the phone.
Just wondering… If I change the library persistent ID key from the computer 2, replacing it by the one I have in computer 1, and I already had an iphone sync with itunes from computer 2, will there be any problems when trying to sync again that iphone with itunes from computer 2?
Can anybody help me, i already try the suggestion from Tomas, but still not working..
Everytime I start the Itunes after all the steps suggested, it still give me a warning message that my current app in my iphone will be erased, if syncd with my new computer.
and if i check the “itunes music library file” the code were changed back to it’s original..
please help..
as i need to get rid of my old computer asap.
too old, thus too slow…
thanks before..
I’m having this same problem. Doesn’t seem to save the replaced ID key.
Any thoughts?
What if I can’t I can’t access my old computer (1). How can I sync with a new computer (2) and keep all my data on iPhone?
Hi Everyone!
This method work without downgrading or downloading anything! Right off the bat with iTunes 10. Already mentioned kind of, but it doesn’t hurt to re-iterate.
You can skip the Hexeditor part if you are starting your new iTunes from scratch. After you change your “iTunes Music Library.xml” file, open iTunes Music Library with TextEdit application delete a bunch of characters (go crazy!) and save. Open iTunes and it generates a brand new library with the correct persistent ID. It will give you a message that a new library file has been created and that the old one has been renamed “iTunes Music Library (Damaged)” Your phone now syncs! If you want to get your music off simply download iRip!
i followed this advice and it deleted most of my iphones memory taking me from 1060 songs to 186 without my knowledge. Thanks for that you have riuned my iphone
The above did not work for me. However, it did set me on the right path. I first followed all steps (latest itunes version) and then (without reinstalling or restarting) copied my backed up ‘iTunes Libary.itl’ to my new OS. Note that it was just and only the itl file, not the XML file. Copying both caused itunes to freeze.
i just copied and pasted both files on new computer. it seems to work
Guys. Why all the hassle?
1. In the new computer, delete the “iTunes Music Library.xml” file.
2. Replace the new “iTunes Library.itl” with the old one from the old computer.
3. Sync.
*YOU MUST BRING OVER WHATEVER MEDIA FROM THE OLD TO THE NEW,
E.G.; PODCASTS/MUSIC/MOBILE APPLICATIONS/BOOKS.
JUST DRAG IT OVER IN iTUNES!
This sounds easy enough, but how are you supposed to replace the old from the new??
It works!!!!!!
Is this really nescesary? Why can’t the pinheads at iTunes make it possible to load music or movies into the iPhone by dragging from windows explorer? I can do that with my windows phone.
No wonder my last apple was a Macintosh. Apple software sucks.
Having iTunes to manage this is actually superior. The only defect is not making it easy to do on multiple computers with the same device.
will this also backup the mobile sync? sms messages on the new computer?
OK, I must be having a blonde moment!! When I open up the Itunes music library to change the code, it doesn’t allow me to delete the code that is already there and replace it with the new code?? Can someone “dumb” down these steps for me.. PLEASE!!
Here’s how I got it to work, from following the above instructions. Note that my iPhone was set to “Manually manage music and videos” on the old computer, so this may not work if you want to sync automatically.
1. Get the Library Persistent ID value from the “iTunes Music Library.xml” on the old computer
2. Stop both iTunes and iTunes Helper processes on the new computer.
3. Edit “iTunes Music Library.xml” on the new computer, setting the Library Persistent ID to the value from the old computer.
4. Clear the contents of “iTunes Library.itl”, making it a zero-length file.
5. Start iTunes. Wait a few minutes for it to recreate the “iTunes Library.itl” file. It will give you a message that a new library file has been created and that the old one has been renamed “iTunes Music Library (Damaged)”
6. Plug in your iPhone. It will have the “Manually manage music and videos” selected on its main page. You can then manage it manually from both old and new computers.
Good luck!
HBJ
This worked for me after hours of frustration with other methods. Many Thanks.
Me too! Finally! Thanks!
This is the best description. Thanks!
Only I had to manually check “Manually manage music and videos”.
And cheers to all the previous guys giving the advice here! This all is really helpful.
Thanks ! Worked fine for me.
Close Itunes.
Edited the file with my new key, then deleted the other one content.
Start Itunes and Voila.
I worked all above. Did not work. Deleted my music each and every time. When I follow HBJ, everything goes well but when I click to manually manage music, asks to delete all content from my iPhone. I am joining the iHate stupid iPhone restriction on what I can do with my digital content. You think that after all this years and so many complaints, they would address this and listen to customers. No wonder more and more users are switching into android phones.
Hi,
I followed the instructions given by you but still no luck. I am running on iTune 10.6.3.25 version.
Any help will be highly appriciated.
Regards,
Prasad
Thanks man, tried this and it worked like a charm! I only wish iTunes didn’t make this so difficult, i lost all the songs on my iPhone trying to sync up my home pc and laptop.
Thanks, that works great!
You are a hero. I was ready to punch everyone in Cupertino. Cheers mate!!
Thank you so much for this! So much easier than the above and it works like a charm ^^
Seriously? I thought Apple made things easy? This looks like an old MS-DOS hack tutorial… Thanks Steve.
I have an iphone 4 that i use using a gevey sim and hence cannot update the firmware as it will lock it again. i have synced it using the older version of itunes. Now i also have a new iphone 4S which doesnt let me use the older version of itunes to sync; it prompts me telling me to download the new version of itunes. my question is will i be able to to sync my old iphone 4 with this new version of itunes without having to update my OS firmware?
http://support.apple.com/kb/HT4527
much easier, sign in on your new computer with your apple ID and transfer your purchases and free products through the iTunes store.
All I did was copy the “iTunes Library.itl” and “iTunes Music Library.xml” over to the second computer I wanted to sync with and it worked. Just had to erase the library and re-add the movies and music to the second computer.
Worked like a charm.