How to sync an iPhone with two (or more) Computers

(Or, How to sync an iPhone with one computer and manually manage music and videos on another).

Note: This tutorial allows you to add music/videos/podcasts from multiple machines. If you just want to sync PIM (Contacts/Calenders etc) on one machine and media on another there’s a simpler way.  On the computer you want to sync contacts/calendar with select only these items and perform a sync. Now, on the second machine enable Music/Photos/Etc and perform a second sync. You will be warned the media library will be deleted, but as there’s no media this is fine :)

Because I do most of my music listening at work and my Calendar/Address book are kept in Outlook I have my iPhone setup to sync with my office PC.  When I’m at home however I find I also want to put music/podcasts/videos on my iPhone for the weekend or trips.

Normally it’s only possible to sync media on an iPhone with one computer. If you try to use a second computer you get the warning below that "the iPhone XXX is synced with another iTunes library. Do you want to erase this iPhone and sync with this iTunes library"?

 sync_warning

However, I’ve found an easy fix for this. In the instructions below I’ll show how to modify any iTunes Library so it can also be synced with your iPhone. You can then either manually manage your iPhone on a second computer, or sync different data on different machines (E.g. Music at home, Contacts/Calendar at work).

The instructions below use the example of modifying the iTunes library on my home Mac to work with my existing iPhone/PC setup. If your existing library is on a Mac, or both machines are of the same type, then the steps are identical.


Notes

  • On the PC you can find your iTunes folder in your "My Music" (XP) or "Music" (Vista) directory. On the Mac it is in your Music directory.
  • For the editing part, I recommend UltraEdit on the PC and a combination of TextExit / HexEdit on the Mac. Any hex editor will do, and you only need to edit files on the second machine.
  • After completing these steps you will be able to sync your iPhone with both computers, either by normal syncing or choosing one machine to manually manage your music and videos. Unless you also keep your music libraries in sync, I recommend you do not attempt to normal sync the same types of data on both machines.

Backup Your Library

On the machine you want to sync with, backup "iTunes Music Library.xml" and "iTunes Music Library" (Tunes Music Library.itl on PC) to a safe location. These are the files you will be modifying.

1) Find your iTunes Library ID

On the machine your iPhone currently syncs with, open "iTunes Music Library.xml" with a text editor and find the entry between the <string></string> tags, after "Library Persistent ID". In the example below this is 8B6C633F7DACB74B. Copy this entry exactly to a piece of paper, email, temporary file etc. You can then close this file.

sync_notepad

2) Change your Library ID

iTunes stores your library information in two places. An XML file and a binary file. You now need to change the ID in both so they match your other library.

Make sure iTunes is not running.

On the machine you want to sync with open "iTunes Music Library.xml" in a text editor. Again, find the entry between the <string></string> tags after "Library Persistent ID" and copy this entry exactly. This time you can use the clipboard if you wish.

When you have a copy, replace this entry with the one you copied in part 1. Make sure you do not change anything else, and the length of the entry is 16 characters/digits. Save this file and close it.

windowslivewriterhowtosynca

In the Hex Editor, open "iTunes Music Library" (Tunes Music Library.itl on PC).

Select "Find and Replace" from the Edit menu. Make sure "Hex" matching is selected (not ASCII). In "Find" enter the ID you took a note of in Part 1. In Replace, enter the ID you copied at the start of Part 2. Choose Replace All, there should be one match.

Save this file and close it.

sync_hex

Success!

Start iTunes on the machine you wish to sync with and plug in your iPhone. When you select "Manually manage music and videos" you will no longer be prompted to erase your data, nor will the files on your iPhone be grayed out.

Additional Notes

Previously I’ve found that intentionally corrupting the binary "iTunes Library" file (e.g. replacing it with a text file) would cause iTunes to regenerate it using the XML data. This no longer appears to work for me in iTunes 7.6.1 and the "repaired" file only contains a few songs. This may be because I keep my music on an external drive but I cannot say for sure. Either way, patching the binary file does not take long and removes any chance of later problems.

1,073 Responses to “How to sync an iPhone with two (or more) Computers”

  1. Well Done! worked exactly as described.

    Reply

  2. You sir, are a genius. Freakin’ FINALLY!! I have been looking for a way to put music on my iPhone by using my MacBook Air ever since I got the damned thing.

    Here’s the thing- I wanted music I downloaded using my Air to be on my MacBook Pro, but not vice versa b/c my Pro holds the 30+Gigs of music. I finally found a way to get new music from my Air onto the Pro with the ratings intact- msg me if you want details. I’ve been looking for your solution to the iPhone thing forever.

    Thanks!

    Reply

  3. YESSS!!! IT WORKS!!
    You’re a genius! Been looking to do this since weeks! Thanks a lot!!

    Reply

  4. El Perfecto !!!

    Thanks a million. It worked like a charm.

    Reply

  5. [...] kan het ook. Zonder enig programma syncen met de PC op de zaak en thuis, Andrew Grant maak het mogelijk. Het werkt [...]

    Reply

  6. Caution. This didn’t work for me. iMac and older Ti book.

    Reply

    • just copy “itunes music library.xml” from your computer into the new computer or laptop you want to sync with. replace it and enjoyeee. ….

      Reply

      • Does copying the itl and xml files from an older imac with an older version of itunes make a difference? I have a Powermac iMac with OSX Tiger and iTunes 7 or 8 I think. Will this still work if I am using a new Intel iMac with OSX Lion and iTunes 10?

        Reply

  7. Woop, it worked, (desktop pc and a mac now manually managing music.)

    Reply

  8. You Sir Are a Freakin GENIUS !! …. You made it simple.
    Thank You , Thank You !!! sooo much. Just GENIUS !!

    Reply

  9. Awsome. Thanks for the tip!

    Reply

  10. Where does Tunes Music Library.itl located on PC?

    Reply

  11. Thank You , Sir

    Reply

  12. Awesome, I’ve been looking for how to do this, thanks!

    Reply

  13. Thanks for the tip. Just want to get some clarification, Under the Summary-tab for each iTunes library (i.e. PC and Mac), we just need to have “manually manage music and videos” turned on only correct? (“Automatically sync when the iPhone is connected” depends on the user of course?)

    Reply

  14. RE: iTunes 7.7 (Auto-sync is off on both)

    I recently tried this. On the Mac: I have INFO/PHOTOS/Apps syncing. On the PC: MUSIC + PODCASTS.

    After syncing in from the Mac, and plugging the iPhone on the PC, Apps is turned on–if I turn it off it’ll delete whatever is in the iPhone. So I just left it on for both. Doesn’t seem to have any problem from what I can tell.

    Meanwhile, after syncing the MUSIC + PODCASTS on the PC, I then plugged it in to the Mac. The MUSIC + PODCASTS syncing seems to be enabled. Clicking them off would delete the contents; as well as turning on “Manually manage music and videos” on the Mac’s Summary > Option section.

    Anyone else experiencing this? TIA

    PS. How about more screens?

    Reply

    • just copy “itunes music library.xml” from your computer into the new computer or laptop you want to sync with. replace it and enjoyeee. ….

      note:file is in music library/itunes/itunes music library.
      :make sure put it in the same path on other computer or Laptop.
      cheers!!!

      Reply

  15. Exelent guide, worked fine with an iphone 3G

    Reply

  16. Wow, thanks for this!

    I’ve been searching for a way to get this to work since purchasing my new iphone 3g!

    I love you!

    Reply

  17. Just want to update that I got this to work… but just no what I was thinking of doing in the first place =)

    … which was to just different data from different iTunes. Basically just need to pick MUSIC/Ringtones as sync, Photos on another, etc. Thanks again.

    Reply

  18. works great!! thanks

    Reply

  19. Where is the Hex Editor located?

    Reply

  20. [...] always had to “erase” one iTunes library and sync with another, no longer! Thanks to Andrew Grant at Shiny Things who create a step by step instruction for syncing your iPhone with multiple computers and giving [...]

    Reply

  21. It seems to work successfully when following the instructions, I can move songs from my work PC to my iphone 3g, however if I attempt to play any song or track through itunes from my iphone, it crashes itunes. Anyone else having this problem?

    Reply

  22. Joey;

    Can you help me out?

    Where is the Hex editor located?

    Is that something that you download to your computer?

    Reply

  23. I am not able to find the Library Persistent ID in my .itl file.

    I have an iphone 3G with iTunes 7.7.0.43 at home and at the office. I’m running windows XP SP3 at home and at the office.

    1. I copied the Library Persistent ID from my .xml file on my home PC.

    2a. I came into the office and replaced the Library Persistent ID on my office PC’s “iTunes Music Library.xml” with the ID from my home machine.

    2b. I opened the “iTunes Library.itl” file from my office machine in XVi32.exe (a hex editor) and searched for the Library Persistent ID string (using the original string that was on my office PC) and it is not being found in the .itl file and therefore cannot be replaced.

    Any ideas what I may be doing wrong or has something changed to prevent this in iTunes 7.7? Any suggestions what to try? Should I try having iTunes regenerate the itl file from the modified XML file only?

    Thanks.

    Don L.

    Reply

  24. Update. I just tried UltraEdit and it was able to make the change. It looks like the 16 characters in the XML and .ITL file are actually 8 characters on the right hand side in UltraEdit where XVI was treating them as 16 individual hex characters. Hopefully that makes sense.

    So I made the change on my office PC and when I did a manual sync to my iphone it moved all the songs from my office PC’s itunes and overwrote the iphone. None of the songs on my iPhone moved over to the PC. Will try again at home tonight an see what happens.

    Reply

  25. Excellent step-by-step! Worked perfectly. The Hex Editor directions were slightly different, but nothing major. Great job :)

    Reply

  26. yah i have a question:

    1. I synced my music and videos with my pc and i just currently bought a macbook, if i do this can i create a backup image/ synch it with my iphone and update without losing the data on my current iphone?

    thanks and hoping for a quick reply

    Reply

  27. Update – Went home over the weekend and my iTtunes at home completely overwrote the iPhone. Back at the office today and in iTtunes on my work PC went to Edit-Preferences and the Syncing tab. I checked “Disable automatic syncing for all iPhones and iPods”. I connected my iphone and selected my iPhone. On the summary tab I unchecked “automatically sync when this iPhone is connected” and checked “Sync only checked songs and videos” and “Manually manage music and videos”.

    Then I clicked on Music under my iPhone and indeed I can check and uncheck indivual tunes. I went back to the summary tab and clicked the sync button. It moved my music and applications from my iphone to my itunes. Cool!!

    However, when I go to the music tab and check “Sync music” I still get the warning, “Are you sure you want to sync musc? All existing content…” So, I still cannot move music from my work iTunes to my iPhone. Any thoughts?

    BTW, I also moved all the files out of my “Previous iTunes Libraries” folder in case that was causing a problem. But that does not help either.

    Thanks.

    Reply

  28. Hi Don,

    When you check “sync music” it will disable the “manually manage” setting and replace your manually manged songs with the contents from iTunes. That is what the warning refers to.

    Also an unfortunate “feature” of iTunes/iPods/iPhone is that the manual-management setting is stored on the iPhone/iPod and NOT in iTunes.

    This means you cannot have “automatic” management at home, and “manual” management at work. You either need to;

    a) Have both iTunes set to Manual Management

    b) Have both iTunes set to automatic management and use something like FolderShare to sync your libraries

    I use option a) and keep a playlist of all the tracks at home I sync to my iPhone. This lets me just drag the playlist across whenever I add new songs to it.

    Reply

  29. Hey, thanks for that amazing tip.

    I just want to let you know that thanks to you, me and my friend took it a step further by putting it into a program!

    It was written in C++, but it only works as of now on a PC (XP/Vista).

    Here’s the app:

    Reply

  30. Uh, it seams that the link didn’t appear on the post, here it is:
    http://www.mediafire.com/?g0ntygbpw7m

    Reply

  31. Andrew,

    Thanks for the clarification. Then it looks like everything is working as advertised!

    Reply

  32. Can you nake a mac version for this

    Thanks

    Reply

  33. Modz619,

    Unfortunately, I’m not able to make it for the mac yet, mainly because I don’t have a mac. But, if someone would like to program it for the mac, that would be great.

    Reply

  34. Why can you not simply replace the “iTunes Music Library” and “iTunes Music Library.xml” files with the ones from the first computer?

    Reply

  35. Angus,

    I believe you can. But then you tun into replacing the library contents of computer two, with the library of the first computer. Since those files contain the library information, and maybe also the iTunes store information. Then you’ll have to re-import your music to the library and reconfigure iTunes to the way you want it.

    Of course you may want to still do that if 1) the second iTunes was just installed, so there won’t be anything to lose and 2) you don’t care :-)

    Also, this way (by just replacing the ID), if you were at your friends house and want to copy some music to your iPhone, you won’t destroy his iTunes. You can even backup the two files beforehand and after adding the music to your iPhone, replace the files with the backup. This way, if he has an iPhone too, he will still be able to sync to his iTunes as before, and no harm done.

    I hope this sufficiently answeres your question.

    Reply

  36. Brilliant!!!!!!

    I’ve been wanting to do this for the longest time since I had an iPhone and this worked a treat. Now I can manually manage my music/podcasts/audio books from multiple computers.

    Thank you!

    Russell

    Reply

  37. Worked perfectly! Thanks SOOO much!

    Reply

  38. You are a GOD among mortals!

    Reply

  39. Thanks a lot! Now I can finally wrangle my music files both on my Mac and on my old clunkerbox and have both of ‘em dump music on my iPhone.

    As it should be …

    Reply

  40. works perfect… the find and replace menu is not on edit for the pc its on search….

    Reply

  41. Feedback from Italy, it work good for me… and it’s better than swaplibrary (especially because doesn’t need jailbreak and it work with many libraries)… now I have just to translate this post to save all italian peoples from Apple’s limits ;)

    Thank you for sharing this great trick!
    Z

    Reply

  42. I never thought its gonna be as easy as 1-2-3-Go!!!

    Andrew, many thanks for makin it effortless!

    Just a small (may be futile) correction. In windows, the .itl file is named as iTunes Library instead of Tunes Music Library.itl as mentioned in the post.

    Great job man!

    Thanks again,
    AJ

    Reply

  43. Hi … GREAT JOB information well given and result secure excelent Thanks a lot

    Reply

  44. Worked *great* for me with my iMac and my Sony Laptop. Thanks a lot for the good article.

    Reply

  45. THANK YOU A MILLION for the detailed instructions…i tried it and it worked for me and i was able to sync music from my 2 PC’s onto my Iphone.

    I did have a little trouble at first during the editing section. Your instructions said to “enter the ID you took a note of in Part 1 under the “Find” section and …In Replace, enter the ID you copied at the start of Part 2.”

    This did not work for me but eventually did when i reversed it; i put the ID from Part 1 under ‘Replace” and then the ID from part II under “Find”.

    Was this a minor mistake or did i read the instructions wrong?

    All in all, you def. made my day!! BRAVO

    Reply

  46. U R BRILLIANT !!

    Reply

  47. [...] Link Join the forum discussion on this post – (1) Posts Bookmark and Share: sociallist_db7415c1_url = ‘http://technstuff.com/tech/mac/how-to-sync-iphone-and-ipod-on-multiple-computers/’; sociallist_db7415c1_title = ‘How to Sync iPhone and iPod on Multiple Computers’; sociallist_db7415c1_text = ”; sociallist_db7415c1_tags = ‘iphone 3g,iPod,iTunes’; [...]

    Reply

  48. hey i read through your directions. but i was wondering if you could be alittle more specific i.e. how to find the text editor ..and just how to find all these things on a windows computer …
    thank you for ur time-ivet

    Reply

  49. Dude you rock. Works perfectly! I can’t believe how much Apple is locking down these iPhones. Not being able to pull music from multiple machine is complete Bull$h!t

    Reply

  50. Hi, thanks for topic.

    I need some help as to how to handle my situation:
    1.I got my iphone, set it up to a brand new Itunes Library.
    2. Computer died. Replaced parts and rebuilt the machine. No backup of iTunes, but have all my music.
    3. INstalled a new Itunes to the newly rebuild pc and “authorized computer” in iTunes.

    So, I guess it sees this new library as a second library. When in fact the first library is long gone, never to be recovered.

    When I sync, I get the same message you are seeing “Iphone is synced with another computer”, erase or cancel.

    Your excellent article refers to grabbing the id of the first iTunes, which I can’t get.

    Should I just “erase”? What about my apps I purchased on the iPhone, but are not synced to ITunes? hmmm.

    Any ideas would be great! Thanks so much.

    Reply

  51. Hi,

    I am using Iphone with my PC, which is having the XP OS, but i am unable to do the above process, Pl can u help me. And even i want to take the back up of my movies and songs from i phone to my PC

    Thanks,
    Bala

    Reply

  52. I have been looking for this solution for a while now. Prior to version 2.0, you could just copy the Library file and after a few burps it would generally work; but then you often had to reimport that machine’s whole library, a time-consuming procedure to say the least.

    This worked perfectly. Many thanks!

    One question (if anybody knows): how does this (or does it) impact the iTunes store account? The whole “You can only have 5 machines…” deal. Does this then count as only a single machine/library to iTunes store? Just curious, I’m not really in need of more computers, just wanted to be able to add music from my work machine and home machine without re-synching every single time.

    Reply

  53. Legend.
    I hope future itunes updates doesn’t break this workaround…

    Reply

  54. The hex editor couldn’t locate the string…not sure what I did wrong…

    Reply

  55. Thanks so much for this – what an awesome tip!

    Reply

  56. > The hex editor couldn’t locate the string…not sure
    > what I did wrong…

    same here. no luck. :(

    Reply

  57. SER YOU KICK ASS I HAVE LOOKING FOR A WAY TO PUT MUSIC ON MY UNLOCKED I PHONE YOU KICK ASS MAN YOUR THE SHIT TEN STARS TO YOU

    Reply

  58. worked perfectly :)
    now if only I could figure out a real way to consolidate my library over my network (movies / tv shows) then I’d be set !

    Reply

  59. An excellent and very informative website! Thank you for your superb help. I had 1 problem printing from your site. I could only print the first page. What am I doing wrong?

    Reply

  60. I’m having a problem edting the iTunes Library.itl file. I downloaded UltraEdit and opened the .itl file. When I selected find replace, all I know is the ascii 16 digit number. So it did not find this to replace it. Do I have to figure out the hex equivalent of the 16 digit key?

    Reply

  61. hi, itunes seems to change the script back to the old version. and wont sync my music but will do exchange and photo’s.

    i synced to first computer it was on auto.

    what can i do?

    Reply

  62. Origianlly, the iPhone would allow me to manage contacts from work, and music from home (ie, this is how my iPhone worked out of the box).

    I wanted to be able to copy the music I PAID FOR from my home computer to work and vice versa… afterall I have the same iTunes Store account on both computers and “authorized” both computers.

    After applying the articles patch… I plugged in my iPhone and it stated “you have purchased songs on your iPhone that are not in your iTunes library… do you want to copy the purchased songs to your iTunes library (if you don’t the songs will be erased from you iPhone.”

    Not much of a choice… so I clicked yes… it then transferred all of my purchased music to my work computer… and then erased my imported (non-purchased) CD’s that I have loaded into itunes. Now, both the iPhone and work computer only have purchased music on it… and the non-purchased music has been erased.

    I haven’t been home yet… but what’s next when I plug this into home?

    Is it going to try and erase my music at home?

    Why can’t I just drag and drop music from my home and work computers if they have both been authorized?

    Reply

  63. Fantastic trick! Works great. Nice detective work.

    Reply

  64. I thought Apple was supposed to be for Dummies, not stand in your way to stop you from doing stuff that’s dead easy on every other device.

    Jobs needs a swift kick in the nuts. He’s now officially a bigger dick than Bill Gates.

    Reply

  65. One note: in the post-app store world, if you install a bunch of apps and try this trick, iTunes will dutifully “sync” your apps, which will probably delete some (or, in my case, all). The workaround — use the App Store installer on the iPhone to reinstall the apps. That way the apps don’t “belong” to the computer, they “belong” to the iPhone, and they’ll sync happily.

    Reply

  66. great tip – thanks. unfortunately I can’t get it to work. I think it’s because I can not find the binary “iTunes Music Library”. I only find the “iTunes Music Library.xml” file. but editing that in Hexedit does not work (“find” does not find anything when set to Hex) – I made sure I searched for the correct string. Please tell me what I am missing.

    I’m on a MacPro 10.5.3; iTunes 7.7.1; iPhone 3G

    many thanks

    Wolf

    Reply

  67. Just works – exactly what I was looking for! :-)

    Reply

  68. it didn’t seem to work for me, but then again, i found this article just after i upgraded to itunes 8. anyone else experiencing problems using this hack with the latest (“genius”) itunes?

    Reply

  69. I had this working prior iTunes 8. it looks as if the upgrade broke the workaround.

    The Persistent ID is the same in both files, on both computers.

    Reply

  70. Rats! I had it working before the iTunes update, but now in iTunes 8.0, when I drag a song from my iphone onto my desktop computer iTunes, nothing happens. The song icon can be dragged around, but it just won’t let itself be dropped onto my desktop iTunes. Dang!

    Reply

  71. will the method mentioned in the last lines of the above article also work for Applications tab? I.e. Office PC – Applications tab enabled
    Home PC – all other tabs

    Reply

  72. works great!

    thanks a lot

    saluti dall’italia

    ciao

    Reply

  73. Brilliant! Thanks so much, now I can listen to my iPhone at work like my past iPods.

    Reply

  74. Well iPhone 3G users and post App-store users..

    Don’t do it this way. I did everything exactly as described, and lost some of my Apps. I immediately disconnected the cable and luckily only 2 apps were gone. Now I have to go back to my main computer and hopefully it will acknowledge those apps are missing, even though they’re in iTunes and paid for.

    Also, for iTunes7.7+ PC users, the itl file is not iTunes Music Library.itl, it is just iTunes Library.itl

    Am I doing something wrong?

    Reply

  75. So what’s the consensus here? This no longer works with iTunes 8? Bummer, I was really eager to be able to drag-and-drop music from my laptop as well as my desktop onto my iPhone 3G. :(

    Reply

  76. In the Hex Editor, open “iTunes Music Library” (Tunes Music Library.itl on PC).

    Select “Find and Replace” from the Edit menu. Make sure “Hex” matching is selected (not ASCII). In “Find” enter the ID you took a note of in Part 1. In Replace, enter the ID you copied at the start of Part 2. Choose Replace All, there should be one match.

    i cant find this :( PC user!

    Reply

  77. [...] was a lifesaver!  Find out how to do it here.  Basically you alter the unique id of your itunes libraries to match, so the iphone thinks that [...]

    Reply

  78. [...] you always had to “erase” one iTunes library and sync with another, no longer! Thanks to Andrew Grant at Shiny Things who create a step by step instruction for syncing your iPhone with multiple computers and giving [...]

    Reply

  79. it works for itunes 8. at least it works on a fresh install of 8. i haven’t tried it on 7 upgrading to 8 or just 7 either.

    Reply

  80. i don’t know what happened, but after installing itunes 8 i was able to find the hex key using
    ultraedit (pc), and everything is roses now! suhweet!

    +++++++++
    accy says:
    2008/08/20, 15:01

    > The hex editor couldn’t locate the string…not sure
    > what I did wrong…

    same here. no luck. :(
    +++++++++

    Reply

  81. Hi everyone,

    I have a cracked iphone with 800 songs put on it.
    I want to download the 800 tunes to my pc.

    THANK YOU for any help u can give.

    Reply

  82. [...] solution to this problem, but it deals with editing some iTunes files.  You can find the solution here, but I just want to say that if you are using Windows then you will need to find a good Hex [...]

    Reply

  83. HI,
    my question is related to this theme (sync an iPhone to 2 diff PC’s). I use Outlook at work for contact/calendars and iTunes at home for music. I am unable to use the wireless sync (ActiveSync) due to IT’s reluctance tosupport it at work), so what are my options? Load iTunes onto the work PC and then merge Outlook into that?
    thanks,

    Reply

  84. I had the same problem as everyone else, using a Hex editor (I tried 3 diff. ones) I couldn’t find the old hex key in the .itl file. This used to work, but I just installed a fresh copy of iTunes 8 on a new machine. But fear not! Apple didn’t break this hack. They actually made it easier!!!! You now only need to update the key in the XML file! No more Hex editing needed! It works perfectly, just as before!! Apple is the BEST!

    Reply

  85. It don’t qute work the way I want it. I like to sync my music using my home PC, and all the rest includeing apps, podcast etc… using my office PC. This method keeps the selection synced; If I choose not to select “sync music”, the same apply to both home and office PC…

    Instead, I install the apps SwapTunes that keeps two copies of my library. It is not perfect but it get the job done.

    Reply

  86. well this may also work on my motorola v3i (which uses itunes as the mp3 player) ^_^ thanks for the tip!

    Reply

  87. i think new release of Itunes 8.01 prevents this operation…

    Reply

  88. That sucks! Can anyone else confirm? It works on 8.0.0.35.

    Reply

  89. hi,
    my mac was stolen and i am looking to sync my iphone with a new PC but i cannot have the original itune ID

    how can i do?

    thank you

    Reply

  90. Excellent work. Thanks!

    Reply

  91. I was just wondering… I would like to organize all my media to 1 small external hard drive. I have an iMac at home and I take my Macbook pro to work. I know that you can point iphoto and itunes to libraries on another drive. If I pointed both itunes to this one drive, would I even need to modify the itunes library files, since both computers would essentially access one drive and ultimately the same library files?

    Reply

  92. WOuld strongly suggest you backup your iphone prior to this. I have a PC at work with my outlook calendar and contacts. I have a laptop PC with my music. I would like to sync both seperately. Tried this hack, but it did not work with itunes 8.01 (fresh install). I only selected music to sync with (all else no sync) but it still told me i was synced with another library and it wanted to erase my iphone.

    Reply

  93. I’ve been doing this for a while now. Synching my calendar with my work PC and all the other stuff from my home PC. All you need to do is connect the iPhone and ignore the cleaning step. Just uncheck all sync. items except the calendar on the work PC. (and uncheck it on your home PC). Now it’s synching without any problems. Music etc comes from the home PC and calendar from work PC (which is also synched with my Google Calendar thanks to Google Calendar Sync (synchs your google calendar with Outlook)

    Reply

  94. WARNING: If the hacked system is authorized for the iTunes STore, you will lose the info. Make sure to de-authorize before doing the hack or you will be wasting one of the precious five authorizations allowed.

    Reply

  95. [...] Qui adesso viene spiegato chiaramente come fare a sincronizzare la libreria iTunes su iPhone su 2 computer o più. Non è difficile, con un pò di pazienza ci riescono bene o male tutti, c’è solo da intervenire manualmente sul codice. [...]

    Reply

  96. Or, don’t do any of this. Go to machine A, plug in and turn off automatic sync. Then make sure every sync option in all the tabs are off. The only turn on address book and calendar sync. Then, go to machine B, also, don’t turn on automatic sync. Then click on photos, video, music sync. And now you are synching your iPhone/iPod to multiple computers.

    Reply

  97. [...] Andrew Grant de Shiny Things a trouvé le moyen de synchroniser l’Iphone avec au moins deux postes. [...]

    Reply

  98. [...] is somewhat of an easy hack for this that Andrew Grant explains on his blog. You will need some basic hacking skills for this (I’m no hacker and I was able to do it). [...]

    Reply

  99. Thanks for the article — it sounds great!
    **One question: Can I use this to give NetShare to a friend who missed the opportunity to buy it?**
    In other words, can I copy all my iPhone’s apps to his iPhone, then reverse the hack to deauthorize his iPhone from my AppStore account? (Will his logging into his own AppStore account then wipeout the copied NetShare?)

    Reply

  100. Thanks for the article — it sounds great!
    **One question: Can I use this to give NetShare to a friend who missed the opportunity to buy it?**
    In other words, can I copy all my iPhone’s apps to his iPhone, then reverse the hack to deauthorize his iPhone from my AppStore account? (Will his logging into his own AppStore account then wipeout the copied NetShare?)
    You may have answered this in your answer to Angus [comment #35} but it’s not quite clear.
    Much gratitude…

    Reply

  101. In my opinion this is one of the BEST hacks for the iPhone 3G I have seen yet. I take my iPhone to and from work and I use it to listen to the music I have on it. With this hack I can now play direct from my iPhone at work through iTunes! Thanks!

    Reply

  102. [...] for us, Andrew Grant has figured out how to do this! Click over and check out his post on how to do this. It’s not [...]

    Reply

  103. Thanks for an awesome trick. Just wrote a post on mine sharing his with my readers.

    Reply

  104. nice work. could you help w a problem. i have videos downloaded off internet onto usb then into itunes. i can watch them on my macbook pro but am unable to transfer them onto my ipod or iphone. ideas?? thanks in advance.

    Reply

  105. Absolute genius!! Thanks for the post….it was a huge help.

    Reply

  106. [...] to a set of most excellent instructions from the Shiny Things blog of Andrew Grant located here, you can sync your iPhone with one or more additional computers. Read on to learn [...]

    Reply

  107. [...] hackszine, andrewgrant A+Featured Hacks, Apple, Audio, cell phones, clipboard, Computer, Consumer, Cool, desktop [...]

    Reply

  108. Great post, but what about wanting to sync PIM data with two computers with teh iPhone being the intermediary? I used to use my WinMo to do with but the iPhone won’t do it. Will this work for that, as well?

    Reply

  109. [...] to a set of most excellent instructions from the Shiny Things blog of Andrew Grant located here, you can sync your iPhone with one or more additional computers. Read on to learn [...]

    Reply

  110. Why can’t I get it to work?
    I selected “manually manage music and videos” and when I hit the sync button nothing syncs up. It only sync when I select the “Sync Music” button. When I do that it erase all the music files.

    Reply

  111. [...] guida è stata creata da Andrew Grent ed altro non è se non una semplice traduzione di quella originale. Tags: iphone, itunes, mac, sincronizzazione, Windows Condividi Scritto da [...]

    Reply

  112. [...] Andrew Grant found a workaround and have made multiply syncing possible. What you need to do is copy the iTunes 16 digit/character ID from your iTunes XML file and edit and paste the  same ID in the iTunes Music Library XML and iTunes Library itl files on the other machine that you want to use for your iPhone. Curious to try this out? See the full instruction here. [...]

    Reply

  113. Easier way around this is to copy the Tunes Music Library.itl and iTunes Music Library.xm files from one PC to the other. Tried this and it works fine

    Reply

  114. [...] vous avez déjà été confronté à ce type de problématique, vous serez ravis de lire l’excellent tutoriel disponible sur Shiny Things pour réaliser ce [...]

    Reply

  115. [...] Grant at the Shiny Things blog shows how to edit your iTunes Music Library XML file to sync your phone (or iPod touch) with [...]

    Reply

  116. [...] How to sync an iPhone with two (or more) Computers :: Shiny Things This will come in handy (tags: windows tutorials tutorial todo tips osx mac itunes) [...]

    Reply

  117. [...] to get the job done. Got a non-edit solution to multi-syncing your iPhone? Tell us in the comments. How to sync an iPhone with two (or more) Computers [Shiny Things via [...]

    Reply

  118. [...] I’ve wanting to to this for a while, but was to lazy to find a solution myself. Luckily, someone found that solution for me and posted a step-by-step tutorial. Go [...]

    Reply

  119. [...] to a set of most excellent instructions from the Shiny Things blog of Andrew Grant located here, you can sync your iPhone with one or more additional computers. Read on to learn [...]

    Reply

  120. [...] to a set of most excellent instructions from the Shiny Things blog of Andrew Grant located here, you can sync your iPhone with one or more additional computers. Read on to learn [...]

    Reply

  121. [...] Changing iTunes Library ID Posted in Uncategorized. [...]

    Reply

  122. [...] to a set of most excellent instructions from the Shiny Things blog of Andrew Grant located here, you can sync your iPhone with one or more additional computers. Read on to learn [...]

    Reply

  123. [...] Andrew has provided additional notes that you might want to checkout by following this link. [...]

    Reply

  124. [...] Andrew has provided additional notes that you might want to checkout by following this link. [...]

    Reply

  125. [...] chapitre des trucs et astuces iPhone, voici un lien vers un article technique et en anglais. Il décrit en détails, avec de nombreuses copies d’écrans comment faire pour permettre la [...]

    Reply

  126. ohoho…thaks for this.
    work great!!!

    Reply

  127. [...] macht auf diesen, schon leicht angestaubten Andrew Grant-Artikel aufmerksam und beschreibt die Möglichkeit, das [...]

    Reply

  128. Hi, I know it’s stupid of me I forgot to copy (2nd paragraph from number 2)

    “On the machine you want to sync with open “iTunes Music Library.xml” in a text editor. Again, find the entry between the tags after “Library Persistent ID” and copy this entry exactly.”

    What will I do? Please help.

    Reply

  129. I can’t quite get this to work with iTunes 8.01 either.

    I no longer get the message that asks if I want to erase the iPhone and sync.

    However, when I have one Mac set to sync music and another set to sync video, the music-only sync wipes all the video and the video-only sync wipes all the music.

    It seems as if I can sync data and media separately, but I thought that was possible even without doing this trick– I guess not?

    Reply

  130. [...] to a set of most excellent instructions from the Shiny Things blog of Andrew Grant located here, you can sync your iPhone with one or more additional computers. Read on to learn [...]

    Reply

  131. [...] to a set of most excellent instructions from the Shiny Things blog of Andrew Grant located here, you can sync your iPhone with one or more additional computers. Read on to learn [...]

    Reply

  132. Hi,

    Based on your instructions – I have created an application.

    Would you be interested in testing it.

    Please send me an email – or leave a comment on my blog website.

    Thank you.

    Reply

  133. The find and replace instructions in the guide (for the hex edit part) should be the other way around. You should of course “find” the string from the 2nd computer and “replace” with the main computer.

    Reply

  134. Hi Andrew, this is really a great trick. I have published a post on our sitehttp://www.iphonefootprint.com/2008/10/iphone-tip-sync-iphone-with-two-or-more-computers/ this trick and have given you the credit for inventing this workaround. Great job!

    Reply

  135. Hey.

    Doesn’t seem to work with iTunes 8.

    :¬(

    Reply

  136. [...] Thanks to a set of most excellent instructions from the Shiny Things blog of Andrew Grant located here, you can sync your iPhone with one or more additional computers. Read on to learn [...]

    Reply

  137. I Have synced my iphone to a new machine, however when i launch iPod the application hangs and the have to reboot the phone…

    Need some help plz…

    Reply

  138. Thank you! It always bugged me that this was not enabled by default. I can now sync with my home machine and copy some music over at work. Well done sir!

    Reply

  139. Thanks for telling how to sync to 2 or more computers, I use your instructions and now I’m able
    to sync to both computers.

    Thanks again,

    Rick Jamison

    Reply

  140. Thank you I have been looking for this for a long time :-D

    Reply

  141. After the anger in realising that this could not be done on the iphone i came across your site and eureka! it worked!

    thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, !

    and thanks for the simple explanation for the non-techies.

    Reply

  142. [...] alguna manera solucionar este tema he encontrado un tutorial muy bueno para hacerlo os lo pongo aquí por si pensais como yo. Lo mejor es que lo podeis aplicar a cuantos ordenadores querais, dos, tres [...]

    Reply

  143. [...] Curiosidades Ipod Como sincronizar Ipod´s en multiples ordenadores —> Aqui [...]

    Reply

  144. When I do this, it keeps deleting my applications on the 3G iphone when connected to new computer I sync to. This does not happen when I change from auto to manual management on computer originally synced to. Did I do something wrong?

    Reply

  145. also, everytime I start itunes, it replaces the ID I saved with the original; it still does it even if I set the file as read only; how did other people get this to work?!

    Reply

  146. [...] How to sync an iPhone with two (or more) Computers :: Shiny Things – This tutorial allows you to add music/videos/podcasts from multiple machines. If you just want to sync PIM (Contacts/Calenders etc) on one machine and media on another there’s a simpler way. On the computer you want to sync contacts/calendar with select only these items and perform a sync. Now, on the second machine enable Music/Photos/Etc and perform a second sync. You will be warned the media library will be deleted, but as there’s no media this is fine. [...]

    Reply

  147. I got the XML files changed and could not find the Hex Editor, finally got that downloaded and OH CRAP I don’t have the old 16 digit number to find and replace, I only have the 16 digit from my MacBook that I am already syncing to… How can I now find the old 16 digit hex on the file I already changed and saved??? I hope it is not screwed forever, please HELP! I can’t wait to get this to work….

    Reply

  148. [...] THANKS***: This tutorial is based on the discovery by Andrew Grant. He deserves credit for his work. You can check out his blog posting on the subject here [...]

    Reply

  149. this is way too comlex fr me.. i dont get it..
    pluss the computer that my iphone was already syncd with has been formated.. how can i add songs to my iphone from another computer without deleting my old songs????

    Reply

  150. [...] THANKS***: This tutorial is based on the discovery by Andrew Grant. He deserves credit for his work. You can check out his blog posting on the subject here [...]

    Reply

  151. i have sunced apps on my primary windows pc and i want to sync photos,rtones,music,videos etc on the secondary windows pc!

    i have followed all the steps and replaced the persistent ID key!

    it is not mentioned anwhere that this method works with apps.

    plz help me, awaiting reply!

    thank you!

    Reply

  152. Will this method work for apps on primary pc n other media on secondary pc?

    Reply

  153. I did all the steps to sync 2 macs together (work and home laptop with the laptop as the main user). It wont work. the new machine is running leopard and the 2nd machine is running tiger. Could that be the problem?

    Reply

  154. Anyone have any luck with 8.0.1.x ?

    It doesn’t appear to work for me though I’ve followed the steps.

    Reply

  155. [...] How to sync an iPhone with two (or more) Computers :: Shiny Things [...]

    Reply

  156. This works great! (using iTunes 8.01 (12), from PC to OS 10.5.5)

    Reply

  157. If you only knew how happy I was to find this solution. Worked like a charm. Thanks a million.

    I am currently running iTunes 8.0 and I am avoiding the update for fear of losing the ability to sync…Can anyone confirm that it is safe to do this?

    Again…thanks.

    Reply

  158. Brilliant, Brilliant, Brilliant!

    Itunes is finally useful!

    Reply

  159. This doesn’t work for me, or will work once for a very limited time and then stop working and erase my iPhone music, and revert the computers iTunes id back to it’s pre-amended state.

    iPhone 2.1 and iTunes 8.01 (11)

    Reply

  160. How to sync an iPhone with two (or more) Computers…

    To get the ipod able to sync to multiple computers basically you find the an itunes ID which the PC you’re allready syncing to has, and then rewrite the ID on the second computer. The only thing is that if you then sync the same type of data from both…

    Reply

  161. Didnt work for me :(
    all my music got deleted
    o well.

    Reply

  162. ive followed all the steps and replaced the file in hex editor successfully, however now when i try to open itunes im getting an error saying:

    ‘The iTunes Library.itl file is locked, on a locked disk, or you do not have permission to write for this file’.

    please help :(
    thanks, laura

    Reply

  163. It worked after Mac Downgrade to 8.0 via (mac.oldapps.com)

    Donor:XP iTunes 8.0.1
    Recipient: Mac 10.5.4 iTunes 8.0, synced then updated to 8.0.1 and it still works.
    iPhone: 1st Gen

    Google: “Uninstall iTunes in OSX” sent me to ipodtouchfans.com (thanks dalliance13)but this might be better: http://reggie.ashworth.googlepages.com/appdelete for getting rid of iTunes. Also I’m “Back to Mac” with MacBook Pro. 7.5.5, 7.6.1, 8.1 now OSX 10.5.4

    Reply

  164. It worked like a charm. I can sync info with the Mac at work, and all my music with the PC at home.

    Thank you!

    Reply

  165. This didn’t work at all.

    I have a MacBookPro that I use for primary syncing. And an older iMac for my music.

    I wanted to accomplish:
    - Sync with my MBP for photos and apps
    - I use MobileMe to sync for calendar, contacts, bookmarks
    - Sync with iMac for ringtones and music

    I followed the instructions and replaced the iTunes library and iTunes library.xml files on my iMac successfully.

    I am running OS X 10.5.5 on both machines and also the latest version of iTunes on both machines 8.0.1 (11).

    But when I want to sync my music from my iMac all my Apps get deleted.

    Help?

    Reply

  166. @Dietrich, See my comment 4 up. Will not work with 8.0.1 you must downgrade to 8.0 (or lower) then upgrade. I would Deauthorize before you uninstall iTunes as well.

    Reply

  167. Can you edit the info without hex?

    Reply

  168. I’ve tried with iPhone 2.1 and iTunes 8.0.0.35 as well as iTunes 7.9.??

    The problem seems to be iPhone 2.1 which has blocked the hack. All I want to do is download podcasts at work so Apple FIX THIS IN 2.2 OR LET SOMEONE WRITE A PODCAST APP

    Reply

  169. Awesome! This was exactly what I needed. Thank you!

    Reply

  170. Thanks so much! Worked great, now I can copy songs/movies from my laptop and desktop both to my iphone. So helpful, thanks again.

    Reply

  171. Sadly it did not work for me. Perhaps this trick doesn’t work with iTunes version 8.0.1.

    Reply

  172. Haven’t tried this yet but isn’t there something wrong with the steps you describe? You say:

    “In “Find” enter the ID you took a note of in Part 1. In Replace, enter the ID you copied at the start of Part 2.”

    But then you’re screenshots show it the other way round. I assume the text is wrong and the screenshot right though as it would make more sense to replace everything with the first ID… can anyone confirm this??

    Reply

  173. Hi Andrew
    My pc recently crashed and had to have new hard drive. Will I be able to use the same principles to change the itunes library id on the itunes on new hard drive to my previous id so that I can sync my iphone without loosing everything

    Reply

  174. [...] systems. Does that sound hard? It’s really not, promise. The tutorial is quite specific. [Shiny Things (how to) via [...]

    Reply

  175. Bummer i wished that would have worked. I need a new fix for the latest version of itunes 8.0.1. I’m a brand new user to itunes and i was shocked that you couldn’t sync two computers.

    Reply

  176. [...] to a set of most excellent instructions from the Shiny Things blog of Andrew Grant located here, you can sync your iPhone with one or more additional computers. Read on to learn [...]

    Reply

  177. I cannot get this to work with my iphone… what could i be doing wrong? when i hit ‘replace all’ my mac just dings.. when i hit ‘replace’ it will make a change, but when i go to open itunes i get a message saying it was created with a newer version of itunes and will move my itunes library to a file called ‘itunes library – damaged’ ….frustrated as this seems easy enough to accomplish…

    Reply

  178. Does anybody know how can I fully sync my iPhone with my Mac at home and sync only my calender with my PC at work?

    Reply

  179. This looks like a great idea. I’m wondering if this works with Ipod Touch 2G and latest Itunes?

    Reply

  180. This was awesome!!!

    Reply

  181. Thank you so much!! its work on my office and home PC now! wow :)

    Reply

  182. this was easy enough but does not work with the latest version of itunes…any updates?

    Reply

  183. Okay let me help you guy’s out, this hack is awesome, but directions are a bit confusing/misleading and flawed.

    It’s quite easy, I have done this for a while on different computers , but it took me a while to get it the first time!

    First off, for anyone who jumled up the numbers and still couldn’t get this fix to work, uninstall then reinstall iTunes, the original XML and binary files will appear !

    Now, this is simple. The computer you previously sync with, write down the 16 digit entry.

    Go to your Mac/PC now, search for the iTunes Library.XML text file, replace the current 16 digit number with this copied 16 digit number from the original computer you sync with. (Don’t forget to copy the original 16 digit number from the computer you want to drag and drop with as you will need it in the second step, have both written down which will be better)

    Now this next step will be the LAST STEP. In the directions it says change the 2 files numbers before even mentioning the hex edit. Wrong, the 2nd step after changing the first XML library file, now you go straight to the binary file which will be double the size of the XML, and have an itunes symbol on it that will link you straight to itunes if you double click it. Right click the binary/itunes library file and open with the text editor. Now go to find and replace, enter the 2nd computers number that you will want to drag and drop with, then the first syncing computers 16 digit number in the replace with box. Hit replace all button once and you will see the text change on the left if you notice it, it works but it wont tell you. Close the find and replace window and now SAVE that file.

    Open itunes, Manually Manage Music box will automatically be checked with your iphone/ipod plugged in.

    Hope this helped and isn’t too confusing, it’s so simple.

    This works on Max or PC with newest 8.0.1 iTunes!

    Enjoy :)

    Reply

  184. GEEEEEEEEZ!! PLS HELP!!
    WHEN I TRY TO FIND THE NUMBER IN THE HEX EDITOR IT JUST DOESNT FIND IT!!
    CAN SOMEBODY HELP ME??

    Reply

  185. Just got this to work with itunes 8.01 on leopard osx.
    IT DEFINITELY WORKS!
    Make sure you are opening the correct file with hex edit!
    I was opening the wrong one for a while and it wasn’t working…
    then I figured it out and presto!

    Reply

  186. In the Hex Editor, open “iTunes Music Library”

    Select “Find and Replace” from the Edit menu. Make sure “Hex” matching is selected (not ASCII). In “Find” enter the ID you took a note of in Part 1. In Replace, enter the ID you copied at the start of Part 2. Choose Replace All, there should be one match.

    Because it did not work out in the right direction for me please let me ask you a question: The text above is this to edit the itunes library for part one or for part two?

    Thanks for your help.

    Reply

  187. Hi,

    HELP…

    I have completed the first part successfully, but can’t find the string in the 2nd part, with the HEX section. I’ve also downloaded the Ultredit program, but that can’t find it…

    Please help, l’m am looking forward to syncing all my music to my iPhone just like l could with my iPod…

    Thanks so much,

    Belinda

    Reply

  188. disregard that previous statement, l read the reply above my post and it mentioned data above when you open the HEX editor…and guess what l found when l looked up there !!!

    Music is syncing now from my home computer…l am punching the air !!! Thanks all…

    Reply

  189. Hello all,

    I re-installed itunes. They are both version itunes 8.01 (12) and followed exectly the document of Andrew, but unfortunitly it doesn’t work. What can I do?
    I work with (major comp.)imac and (minor comp.) macbook air. and try ro sync with iphone 3G 2.1

    Thanks!

    Reply

  190. my phone wont allow me to sync i just purchased a new song and i cant do any syncing at all HELP!!!!!!!!

    Reply

  191. [...] is attached to a different library, it will not accept any transfers or modifications. There is a hack that’s circulating on the Net, where you modify the ‘Persistent Library ID’ in [...]

    Reply

  192. Fuck it! I lost all my stuff.

    Reply

  193. Thanks! Works like a charm!

    Reply

  194. Hi, i have one question about this. i have an iphone and my syster has one too, if i do this in her computer and mine, would there be problems?

    Reply

  195. Thanks!!! work perfect.

    Reply

  196. I followed your directions and now cannot open iTunes. It gives me the message that my library was opened with a newer version of iTunes and cannot be opened.

    Reply

  197. Thank you, fantastic! Greatings from Sweden!

    Reply

  198. It seems not to work with the apps!

    iTunes wants to remove my apps från the iPhone.

    Reply

  199. Hey, Andrew —

    This is an amazing tip, and I am hoping to turn it into an Insiders Secret video for CNET TV. I’d like to give you full credit, so I wanted to find out what you’d prefer — your name? Your blog URL? Thank you in advance, and thanks for such a great tip! Email me for more info!

    –Molly Wood

    Reply

  200. [...] However, if you’re the more adventurous type, as Martin Andersson pointed out to me, you can edit your iTunes library manually, as described in How to sync an iPhone with two (or more) Computers. [...]

    Reply

  201. worked for me. . . I have iTunes 8.0.1.11 on a PC I wanted to sync with. . . 8.0.2.20 on the PC I already was syncing with.

    perfect except that when I sync’d to the new library it blanked my collection on the iPhone. i then re-sync’d with my original and then I could go back and forth.

    i used UltraEdit to edit on both PCs. I already had it installed on both as I use it for other programming needs.

    EXACTLY what I was looking for thanks!!!

    Reply

  202. Just wanted to add another thanks! Another iPhone 3G user here, and VERY happy to have this work!

    Also, misc info:
    -iTunes v8.0.1.11 (the modified one)
    -Phone just purchased last week.
    -I use a PC for both computers (work & home).
    -I used Hxd (http://mh-nexus.de/en/hxd/) for the Hex editor.

    Hope this helps others!

    Reply

  203. Hi there,

    WHat can you do if you dont have the original Mac / PC that the phone synched with? I have my sisters iphone so cannot access her Mac in order to obtain the original part of the itunes XML document. ANy suggestions?

    THanks

    Reply

  204. i just wanna ask why everytime i click my itunes they all say that the itunes library itl. file is locked on a locked dick or u do not have permission for this file!!! why? and if i removed my itunes on the pc and install again and again they not working what should i do pls help me guys! thank u! because i want to have songs and videos to my iphone please help!

    Reply

  205. Works perfectly with my 2 macs and my iPhone!
    Brilliant!!!
    Just what I’ve been looking for.
    Have a Happy Christmas, greetings from Germany.

    Reply

  206. I tried everything you described (easy enough) however nothing happened. I did notice that there are multiple instances where tags appear with a 16-digit code. They are, of course, all different. What am I doing wrong?

    Also, I am trying to synch my iPhone on the same computer; just different HDs with iTunes. I upgraded from Tiger to Leopard.

    Reply

  207. I only want to sync my iphone with another computer because my old computer crashed and i cannot get the string line you mention in section 1. what do i do then

    Please help

    Reply

  208. Fantastic! Worked perfectly. Just what I needed.

    Reply

  209. what sn absolute dream come true. You are a freakin’ genius!!!! I will tell everyone i know sbout this wonderful fix. It really works if you follow it step by step!

    Cant barely believe my eyes

    Jimbo C.

    Reply

  210. Searching for the Persistent ID code in the Hex Editor did not work until I separated every two characters with a space. I think Hex text is always pairs of characters. In your example I would have to change
    “8B6C633F7DACB74B”
    to be
    “8B 6C 63 3F 7D AC B7 4B”
    There may be something I don’t understand.

    Reply

  211. [...] Thanks to Justin’s comment and link, this is no longer an issue, woo hoo! A big win for [...]

    Reply

  212. Does this method of synching iphones with two computers still work?

    I noticed that the term “Persistent ID” occurs thousands of times in my library.

    Thanks.

    Regards,

    Bob

    Reply

  213. Wauw! Finally it can be done! You’re my hero! It’s really great how U solved it.

    Happy Christmas from the Netherlands!

    Reply

  214. TO LAURA and Mark

    laura says:
    2008/11/01, 17:55
    ive followed all the steps and replaced the file in hex editor successfully, however now when i try to open itunes im getting an error saying:

    ‘The iTunes Library.itl file is locked, on a locked disk, or you do not have permission to write for this file’.

    The reason the Library is locked may be that you still have it in the Hex editor. After saving the edited file, close the Hex editor, which will release it for use.

    Reply

  215. I did this (successfully, I think), but I was hoping to be able to sync selections from either computer iTunes music to my phone.

    Am I wrong, or does this only let you use one or the other?

    Is there a way to select music from both libraries to be on the iPHone?

    Reply

  216. Is there a way to get it to work with Iphone 3g and latest Itunes version in MAC and PC

    Also is my understanding correct when I say that if I normally use the PC with my Iphone (have Music, apps, etc) and my 2nd will be Mac I can copy the existing contest of the iphone to the Mac? and be able to use both for Sync and be able to have the same stuff in both PC and Mac?

    Reply

  217. Brilliant!!

    Excellent work-a-round!!

    With people like you who cares that Apple try to lock and control everything!

    Peace and power to the people!!

    Cheers

    Reply

  218. [...] Fix: I found a good article on how to use a small hack to let you sync to multiple PC’s at http://www.andrewgrant.org/2008/03/30/how-to-sync-an-iphone-with-two-or-more-computers.html. Extra note: If you need a good free Hex editor for one of the steps in this tutorial use HxD Hex [...]

    Reply

  219. Yea, this cool but the quest is, is this full proof. Wait until the next update of ITunes and you never know if this can be trusted “next time” after you update. Be careful people trusting this.

    Reply

  220. I’ve tried going through these steps many times trying to get this to work. It seems very simple. I copied the ID from my home pc, pasted it into the xml on my work pc. Did the search and replace using Ultra Edit for the *.itl, but every time after I open iTunes and connect my iPhone 3g and select manually manage music and videos, when I go to click on the music on my iPhone, I get the message saying that this iPhone is synced to another pc…..

    I have even verified that the iTunes Library.itl and iTunes Music Library.xml still have the ID that came from my home computer. Is there someplace else that iTunes reads this informaiton from? How is everybody else getting this to work? Does it matter that I don’t have any songs in my work pc iTunes library? I only want to be able to plug my phone in and play songs off my phone through iTunes. I’m using 8.0.2.20

    Reply

  221. This is awesome! Andrew, you ROCK!!

    Reply

  222. hey..i have my iphone synced with a computer at home, but i am currently travelling.. is there any way i can get new music on my iphone without deleting my current music library?
    thanks

    Reply

  223. @Mikkel

    RTFA

    Reply

  224. WORKS PERFECTLY

    THANKS

    Reply

  225. [...] copiado, modificado e adaptado por Marcos Adriano, a partir deste artigo do iClarified e graças a Andrew Grant, que descobriu a brecha.] bb_keywords = “iphone, itunes”; bb_bid = “2727″; bb_lang = “pt-BR”; bb_name = “custom”; [...]

    Reply

  226. Confirmed to work on iTunes 8.0.2 and iPhone 3G.

    Many thanks!

    Reply

  227. [...] How to sync an iPhone with two (or more) Computers :: Shiny Things yet another "edge"-case totally ignored by apple. Is it so unusual that people have a computer at work and another one at home? (tags: iphone itunes sync hack) [...]

    Reply

  228. Can you do this if you have an iPod syncing with home computer, an iPhone syncing with office computer. Then, you want to manually add music/videos to the iPhone from your home computer. Will the iPod work after that?

    Reply

  229. Thanks for the post and the questions. I think that I have completed it correctly but still have a question. When I try to sync music from my ipod to my computer I am not able to. But it seems that songs purchased on my computer through iTunes Store can be uploaded to my ipod from either machine. Is this correct? That even with a “successful” hack you will not be able to take songs from the ipod (initially installed from Computer 1) and transfer them to Computer 2? Or am I doing something wrong? Thanks.

    Reply

  230. Thank you so much.
    It worked.

    Reply

  231. Hi…I think I may have missed something. I replaced the ‘library persistent id’ in my home itunes library xml file with my work’s ‘library persistent id’, then saved the file. I then used AXE (advanced hex editor), a third party hex editor to modify the hex file to now point to the new library persitetnt id i copied from work. I think I may have missed something because nothing changed. I am still unable to sync my ipod touch with my home computer without erasing all i already have on it.

    Reply

  232. Wow…it works. Disregard my last post…I’m a developer (not a media developer though) but this is pure genius…i just had to pay closer attention to your steps…I have unlimited sync capabilities at home and work now. This is awesome..thanks a lot.

    Reply

  233. My iphone has existing applications and i also have downloaded applications for my iphone at my PC. I just want to add the downloaded applications to my iphone but seems like if i sync my iphone, all my existing applications will be deleted.

    Appreciate if can help. Thanks

    Reply

  234. By the way, am using Iphone 3G and i-tunes 8. Await your comments

    Thank you

    Reply

  235. [...] Using an iPhone (or iPod) with more than one iTunes Library (computer) seems to be impossible. There is a work around that my friend Dom found on the ShinyThings blog. [...]

    Reply

  236. I’m new to iPhone and just figured out I couldn’t put music purchased at work along with music I purchased at home onto the phone, after I made a number of purchases!

    Where’s that at?

    This works great.

    Thanks a bunch for sharing!

    Reply

  237. is there anyway to regenerate the .xml code, cause i kinda screwed up =/

    Reply

  238. it works well. thanks for the help!! =D

    Reply

  239. syncing, pictures to your iphone. why is this so hard to do. i think i can answer my own question. go to itune .com pay money. $.99 download one song. money money money. u would think that when time expire they will take the dam money with them.

    Reply

  240. My Itunes doesn´t do nothing.
    I did it all forms to connect my Ipod with my Mac.
    Do you Help m?

    Reply

  241. it doesnt work :/

    when i open the .itl file in notepad its all loads of random symbols and letters and i searched for Library Persistent but it wasnt there??

    Reply

  242. I have done this a ton of times and can’t get it to work. I followed all the steps to a T. My home computer (#2) still wants to delete my existing library and replace it. Anything else I can try?

    Reply

  243. I think the problem is that the hack will allow only one way sync with two computers. So you can purchase music on two computers and download it to the ipod. You cannot completely sync the ipod with two computers. There is still no way to copy music from an ipod to a comuter without using third party software. Am I correct here?

    Reply

  244. Thanks. My issue though is that I have different music on the two computers and want to add all from both to my new itouch. I don’t care about copying back to the computers as the software will allow.

    Reply

  245. Andrew, my work computer crashed and was replaced by a new one before I was able to copy the key IDs. I have a new mac that I want to do all my syncing. How do I do this on my new mac. Thanks.

    Reply

  246. I can’t find either of the two files referred to in the article, using Mac 10.5.6 w/ Itunes 8.0.2 on both machines. Searched the computer for anything with “library” in the name and can’t find anything that seems appropriate. Anyone help me here and let me know where I can find these files?

    Reply

  247. Got it! Theer were a couple of random iTunes related programs that were starting up with my computer, even without iTunes running. Once I went through task manager and ended these processes, this routine finally worked. Thanks for the post!

    Reply

  248. Used your guide for syncing an iPod/iPhone with more than one machine and it worked great. My first time to use a text editor or hex editor. A little scary at first but it went petty smooth once I located and downloaded the editors. Pretty cool. Thanks for the info.

    Reply

  249. Great, Awesome, Fantastic – worked first time.

    Good Work.

    Thanks.

    Reply

  250. When I try to find and replace the ID I get a message saying that the file is read only and cannot be changed. I am trying going from a Powerbook G4 to a Macbook Pro. Is there a way around this?

    Reply

  251. what should i open hexedit with?

    Reply

  252. [...] How to sync an iPhone with two (or more) Computers :: Shiny Things i need to do this. (tags: iphone sync) No Comments [...]

    Reply

  253. awesome work!

    Reply

  254. Aris,

    Do a find (CTRL-F in Firefox) for hexedit in the thread on this webpage and you will find a comment with the url for the hexedit application.

    Reply

  255. Thank you for the clear step-by-step on how to accomplish this basic functionality that’s missing from the iPhone. I’m sure it’ll be added in a future rev and touted as a ‘feature.’

    A couple of points here:

    1. On the current version of iTunes (Mac OS X 10.5.5), the binary file is called ‘iTunes Library’.

    2. In the current version of hexedit, the ‘find and replace’ is under the ‘find menu’ instead of ‘edit’.

    3. When you click ‘find and replace all’ I didn’t see any counting of the times the old value was replaced with the new value. I clicked it a few times, then saved the file. When I restarted iTunes, it rebuilt the ‘iTunes Library’ file from the xml file.

    Guess what? It also let me play the music on my iPhone on the second computer. Hooray!!!

    seth

    Reply

  256. hEY I CANT FOUN THE LAST WINDOWS YOU SHOW IN THIS TUTORIAL.

    WHAT CAN I DO, WHAT ITS THE NAME OF THE An XML file and a binary file O HOW CAN I OPEN IT??

    PLEASE HELPE ME

    VERY MUCH TANKS

    Reply

  257. [...] to dig into text files and modify the iTunes libraries on your two systems, you can follow this procedure from Andrew Grant. The process will modify any iTunes Library so it can also be synced with the [...]

    Reply

  258. You freaking rock!! I was going crazy about this. Thanks!!

    Reply

  259. Great article. It worked as promised. Thank you very much.
    For all noobs, like me, I tried syncing music from the second computer to my iphone and all my info still got erased. I found out that all I had to do was drag the music I had on my second computer to the iphone icon instead of sync in manually. I hope this how it supposed to work.

    Reply

  260. This did not work for me. Not sure if I am doing something wrong. I have firmware 2.2 and I am on WIndows Vista 32 and 64 bit…

    Any suggestions…The Ultra Edit did not show me the same screen shots you posted as it did not have the HEx option to check. Only ASCII..

    let me know if you have any additional tips…

    Reply

  261. works like a charm. thanks to Martin for clearing up some confusion

    Reply

  262. Please ignore me…this works like clock work orange….YOU ROCK!!! Thank you!!!

    Reply

  263. [...] to dig into text files and modify the iTunes libraries on your two systems, you can follow this procedure from Andrew Grant. The process will modify any iTunes Library so it can also be synced with the [...]

    Reply

  264. [...] wird ein sogenannter HEX-Editor1, dieser Link hier der ausführlich gelesen werden sollte und natürlich: ein paar Minuten Zeit und wohl ein wenig [...]

    Reply

  265. Hi I’ve been tring and when I use the Hex editor it wont find the text string, I’m using Itunes ver 8 and PC
    Would like to use my iphone at work and home
    Thanks

    Reply

  266. [...] to dig into text files and modify the iTunes libraries on your two systems, you can follow this procedure from Andrew Grant. The process will modify any iTunes Library so it can also be synced with the [...]

    Reply

  267. I get the same message discussed here. To paraphrase, roughly:

    “this iPhone is synced with another iTunes library and so syncing now will just wipe clean all your puerile music. It will be nothinged out of existence. You will be ‘syncing’ yourself into blankness. So by all means, click the ‘Sync’ button, you pathetic geek wannabe.”

    Like I said, a paraphrase — not only of the actual words of the warning, but of the spirit of contemptuous arrogance bubbling just below the surface of them.

    My problem is not so much that I have one computer with iTunes at work and another iTunes at home and want to sync on both.

    Instead, what happened to me is that my computer at home completely crashed and I had to reinstall XP and so lost everything including, of course, iTunes and my music library.

    My iPhone itself was not affected by this PC crash. It has lots of music on it from when it used to sync with my precrash Desktop. If I can’t fully sync what’s on my iPhone with my Windows XP Desktop, I would like at least to add music to the iPhone.

    When I connect my iPhone to the computer at home, iTunes recognizes it just fine. I bought a couple of CDs today — Journey, Boston, the usual — and imported them into my iTunes library. (Remember, I had to reinstall iTunes software after the big computer crash.) Importing the CDs went fine — there they are in my Desktop iTunes library. But then I tried to drag the newly added music files over to the iPhone icon and nothing doing. Red circle with slash through it.

    Left hand side column of iTunes I can see my iPhone icon. I click on it, and I am shown the Summary page. I click on the Music tab, third tab to the right of the Summary tab. I figure I’ll try the old trick on this Music tab, gleaned from hours of skulking about blogs and tech sites. You start by clicking “Sync music” (at the Music tab of your iPhone), then clicking “Selected playlists,” then checking one of the listed “playlist” folders I would have earlier filled with my recently added CD tracks. Next, you click “Sync” (lower right-hand side on “Music” tab page). The result is supposed to be a successful transfer of the new music to my iPhone as a “playlist.”

    Had this worked, I would again have found a work around permitting me to add music to a mobile music device using iTunes software from Apple, itself so cleverly designed as to make such syncing operations near-impossible, as if one were playing a particularly vexing version of Myst. They really should come out with a ‘Myst’ rendering of iTunes. Cheats on sale for .99; really good cheats — the ones that actually make it possible to transfer music from iTunes to an iPhone — well, they would have to be made available at the ‘album only’ price, of course.

    But every time I try this (that is, the series of clicks on the ‘Music’ tab of my iPhone, in iTunes described above), I am warned that if I try this maneuver, “this iPhone, the Desktop linked to it, along with all your childhood memories — stored digitally in a computer, as hard copies in some shoebox, or even just in the minds of you and your loved ones — will be wipe-deleted using a special irretrievability algorithm that, had it been perfected in time by Adolf Hitler’s mathematicians, would have materially affected the outcome of the Second World War.”

    In response I have, so far at least, hit ‘cancel’ rather than proceed. You really have to hand it to Apple — they know how to write warning messages.

    Reply

  268. I have changed the iTunes music folder to a different one as opposed to the Default (My music/iTunes/…) on my work PC. However my home PC is default set by the iTunes installation. Does this make any difference. I tried chainging the Library code in the xml and hex on my home pc to reflect my office pc, but the hack does not work. I have iPhone 3G(2.2) and latest Itunes 8.0.2.

    Reply

  269. My problem is that I can’t get iTunes on my laptop to even recognize my iPod Touch. I have the most recent version of iTunes and my iPod is up to date. I did your work-a-round and iTunes on my laptop recognized my iPod and started to sync. But then it stopped in the middle of the sync and my iPod was no longer in the devices. All I want to do is sync my calendar and contacts in Outlook 2003 Professional on my Toshiba Satellite A65-S126 Laptop to my iPod Touch and sync music, photos, apps, etc. from my desktop.

    iTunes on my desktop works perfectly. It recognizes my iPod and will sync anything and everything. But I can’t get iTunes on my laptop to even recognize it. Soooo, is there anyway to point iTunes on my desktop to my Outlook calendar and contacts on my laptop via my home network? iTunes obviously accesses some file in Outlook to know what info to pull into my iPod. Can’t I just point it to the same file but in another location i.e. my laptop on my network?? I don’t have any programming experience and would need something step by like you provided in this work-a-round.

    Thanks for any help!!

    Reply

  270. does this wor4k for the 1st gen iphone?

    Reply

  271. Worked perfectly!!! On Iphone 2.2 and 1 mac and 1 pc :) I’m sooooooo happy

    Reply

  272. (on pc) i’ve been doing everthing excactly as described but after replacing the president id and saved it ,i can not run itunes. any idea what im doing wrong. i’d apreciate it. thanx

    Reply

  273. Hi,
    Thanks for your post, can you please tell me if I can add music to my Iphone without deleting already existing library, as per my knowledge, I can add music to my Iphone only by replacing old library.

    Sumit

    Reply

  274. Dude i don’t understand. I’m not a computer genius so can someone please please help me. I’m trying to do this on a macbook but can’t. My email is yoboyjayb@yahoo.com if you shoot me an email or reply on this I’ll give you my aim or something and hopefully you can help.
    Thanks.

    Reply

  275. This is by far the easiest way i have found to do this

    Thank you!

    Reply

  276. this is in cause i had synced library ID in first place , but what if i lost my hard drive with all itunes library iD and music and my iphone is ok and i can’t get into it unless i come with my lost library ID .

    let’s say i lost every thing but i have my iphone loaded with lots of music , video , ringtone . how i can sync with new itunes without losing my stuff

    Reply

  277. Tried today with 2 accounts in win Vista64 and windows XP with itunes 8.0.2.20. Worked excellent. Now I can use my little netbook and synch wherever I want (my girlfriend, too), GREAT. Thanks for this nice article!

    Reply

  278. Hey guys. This whole thing is pointless if you have 2.2 software for the itouch or the iphone that’s up to date with the new itouch. All you have to do is turn off auto sync with everything and you can have up to 5 libraries it says so don’t go through this crap.

    Reply

  279. I cannot locate said .xml & .itl files on either windows vista or XL machines…

    Reply

  280. GREEEEEAAAAAAAAAATTTTTTTTTTT trick
    salute to the master mind

    Reply

  281. My main iMac G5 died, so had no way of transferring new music/movies to iPhone 3G. Method described here works a treat. Managed to retrieve ID from Time Capsule backup of “iTunes Library” file only (.xml file missing) and copied it to MacBook. Thanks for the knowledge.

    Reply

  282. andrew my second computer is running xp, and Im working with Ultraedit. and evertime i try to do the “find and replace” its always says cant not find… i dont understand whats going on???

    Reply

  283. Doesn’t work for me… iPhone 2.2 and iTunes 8.0.2 :(

    Reply

  284. Hi there. Thanks for your help. I’d like to use my iphone to update both my contacts on my work PC and my contacts on my macbook at home. ?Will using the option to “merge data” double my entries, or will it intelligently determine which records have changed and update only those records? I’ve been afraid to try this, as I have about 1000 entries and don’t want to remove 1000 entries if they are duplicated.

    Harry

    Reply

  285. Works great!!I just had problems with HexEdit because I forgot to close iTunes, but right now I got my iPhone’s music playing in my MacBook Pro
    Thanks!

    Reply

  286. Does this also work for ipod Touch? Thanks

    Reply

  287. Help
    I moved and carried my email contacts with me on my iphone. I thought I could sync with a new computer and down load them. This does not seem to work, it wants to (as you described above) erase my iphone date.
    Can you help?

    Reply

  288. Can you help me out?

    Where is the Hex editor located?

    Is that something that you download to your computer?

    Reply

  289. There are no words to describe the level of genius and generosity you’ve shown to the iPhone community. You sir are a gentleman and a scholar.

    p.s. FREAKIN’ AWESOME!!!!!!!

    Rey

    Reply

  290. Brilliant, it works perfectly. Thanks

    Reply

  291. This is awesome, big thanks!

    Reply

  292. Does not work with iTunes 8. Is there a work around?

    Reply

  293. Thank you!! Worked perfect!

    Reply

  294. Did not work for me with itunes 8.0.2 on a pc. Wasted a lot of time.

    Reply

  295. thank god…

    Reply

  296. [...] you always had to “erase” one iTunes library and sync with another, no longer! Thanks to Andrew Grant at Shiny Things who create a step by step instruction for syncing your iPhone with multiple computers and giving [...]

    Reply

  297. I have tried but I can’t seem to get it to work. I can edit the .xml file ok and replace the hex string no problem. I downloaded a hex editor, but when I open the .itl file and search for the hex to replace it says not found? Which hex editor is the best to use. I really need to get this working as my XP instalation has gone belly up!!!

    Thanks

    Reply

  298. There is NO “iTunes Music Library.xml” file. Please help. iTunes 8.0.2.20 Windows Vista Ult. iPhone 3G. Please email me at dvst8ion@gmail if you can help. Thank you in advance.

    Reply

  299. [...] Guía basada en el artículo: “How to Sync an iPhone with 2 computers” iphone, ipod, [...]

    Reply

  300. This is simply amazing, and works like a charm :D

    Reply

  301. machine at home: PPC g5, leopard, itunes 8.0
    machine at work: intel, tiger, itunes 8.02

    iphone 2.2
    WORKS GREAT!!!

    Reply

  302. I did what was instructed with my new iphone 3g and it still didnt work. Does this not work for an iphone.

    Reply

  303. when i get to the find replace and enter the numbers and hit replace all nothing happens and i get a ding sound

    Reply

  304. I FOUND THE CODES IN-BETWEEN THE BUT THEY APPEAR TO BE THE SAME ON BOTH OF MY MAC’ S, I HAVE NOT TRYED ANYTHING LIKE THIS BEFORE, HOW IS THIS POSSIBLE? PLEASE HELP, THANKS.

    Reply

  305. At last! I was weeks away from getting rid of my iphone.. MAD with frustration at not being able to move music from my work or home computer. Ive lost count at the amount of feedback I’ve left screaming at apple. Is it really that hard?!! Seemingly no… Worked perfectly!

    I had a little trouble finding a hex editor which didn’t unexpectedly quit.. stumbled on this one which did the job.. http://www.suavetech.com/0xed/0xed.html

    Thanks so much!

    Reply

  306. I just purchased a new macbook. Took my setting from my pc and it worked. Thank you!

    Reply

  307. Confirmed working on iPhone software v2.2.1 and iTunes v8.0.2.20

    Thanks for the great tutorial!

    Reply

  308. Thanks for this. So nice to be able to listen to music on my computer at work through the iPhone!

    Reply

  309. Worked! Thx alot.

    Set my iPhone 3G to manual just incase some of my music was foobared! Lastest version of iTunes

    Reply

  310. Hi Andrew,

    Well I got to the point of changing the Persistent ID then I saved, opened the file again to do the find/replace, put in the numbers exactly and hit replace all, and it said SEARCH STRING ” ” NOT FOUND
    Please Help Me,
    MIKE

    Reply

  311. After some confusion I finally got it working. For anyone who couldn’t find the files on Windows, the 2 files in question are located in your Music (My Music for XP) folder, under iTunes.

    In windows you have to download a Hex editor for the .itl file, I found a good, non-install, freeware one at http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm#download.

    When you’re using that program, to do the search, select the Hex part. YOU MUST TYPE IN THE CHARACTERS MANUALLY. This is important because if you just paste it in, it’ll say “invalid…”. When you type it in manually it separates every 2 numbers like it should for this hex. Once it finds the string it will just select the first 2 characters, that’s okay. At this point, just click Edit->Overwrite String. Now just MANUALLY ENTER the correct library string from the instructions. Hit OK, then go to File->Save.

    Then CLOSE THE EDITOR or iTunes will freak out when it runs. Now just run iTunes and it should work! (this is assuming you followed the instructions for modifying the .xml file too).

    GOOD LUCK ALL!

    Reply

  312. I owe you a big thank you.. THANK YOU!!!

    Reply

  313. Works great! (And this has been driving me mad for ages!!).

    One thing – I had to edit a file called iTunes Library Extras.itdb to get this to work as there didn’t seem to be any file called “iTunes Music Library” with that file type on my mac.

    Ta!

    Reply

  314. This works on a mac. Make sure you don’t leave the file open in the text editor or the hexeditor otherwise itunes will throw an error. Yes I was dumb enough to do that my first time through.

    Reply

  315. I was so happy to find this! I have a second-gen iPod Touch and iTunes 8.0.2.22, and it worked great.

    Reply

  316. I’m running iTunes 8 and trying to sync with 3G ipod version 2.2.1, followed all the directions (plus also changed the “Itunes Library Extras” file – and….
    doesn’t work – no change.

    I’ve checked the files and verified that the ‘new’ number is saved not the ‘old’ number – but it still doesn’t work.

    Anyone have any suggestions? (I tried rebooting both ipod and imac)

    Samimnot

    Reply

  317. I am having the same problem as SAMIMNOT

    Reply

  318. [...] whatever computer you connect your device to will think it can sync to your iPhone/iPod. I found this tutorial over at the Shiny Things blog. Thanks [...]

    Reply

  319. Cheers~ Still works! Thanks everyone!

    Reply

  320. I could not find the “iTunes Music Library” but I did find iTunes Library, so, I still proceeded with your directions. When I got to the find and replace part, I got a message from HexEdit stating “This window’s file is read-only,meaning you can’t make or save…….” so now I am stuck and can’t make the required change. Please advise.

    Reply

  321. hey i have both pc and i seem to have trouble finding the binary file, kuz i found the xml but i need help finding the other

    Reply

  322. I love you.

    Reply

  323. I did this step by step but its not working for me. I am still getting the prompt to erase and sync when I check manually manage music. I have 2 PC’s (one XP and one Vista). Any ideas?

    Reply

  324. There isn’t even an itunes music library.xml file on my computer…wtf? Where would I even find it? This doesn’t make any sense…

    Reply

  325. It works great on my 2 macs! Thx!

    For your info, the “iTunes Music Library.xml” file might be hidden. Open iTunes and it will reveal itself. Open it in textedit before closing iTunes.

    For the 2nd step, on my mac its called “iTunes Library”

    Reply

  326. I have used this technique in the past and it worked. However, I was just looking back over this to remember how it was done. Im a little confused with some of the steps. I understand to copy the 16 digit code in the .xml file from the itunes I am currently syncing with. Then I understand to open this file on the 2nd computer I wish to sync with and copy that code as well, then replace it with the one from my original pc. The next step I get confused on. Once I open the .itl file on my 2nd pc I wish to sync with, You state:

    “Select “Find and Replace” from the Edit menu. Make sure “Hex” matching is selected (not ASCII). In “Find” enter the ID you took a note of in Part 1. In Replace, enter the ID you copied at the start of Part 2. Choose Replace All, there should be one match”

    However, in the image you provide for reference you have placed the codes in the opposite places. The images shows the first code that was takin note of in step one listed under Replace and the one copied at the beginning of part 2 is listed in the Find bracket??

    Am I confused or what?

    Thanks,
    Lewy

    Reply

  327. Thanks, works great with ITunes 8.0.2.20
    For those confused with the iTunes Library.itl part on a PC right click the iTunes Library.itl and open with UltraEdit you will

    “Find”(the 2nd PCs code that you just changed in the iTunes Music Library.xml) and you will

    “Replace”(with the code from the 1st PC that you normally sync with)

    then hit the “replace” button and hit ok, then save and open Itunes. You must select the same option to “Sync” or “Manage” that is selected on the 1st PC(I personally prefer Manage)and then transfer the music from the 2nd PC. GL

    Reply

  328. Thanks so much! I had to wipe my entire drive, and this was one thing I hadn’t thought of ahead of time.

    Reply

  329. Many thanks for this. I had a few problems at first but it works fine now.
    itunes 8.0.2.2.0 and iphone 3g version 2.2.1

    The biggest problem I had is that there were three different copies of itunes libraries on my old computer from previous computers that had just been transferred over onto newer models.

    Reply

  330. This doesn’t work for me. I switched computers recently and I’m trying to sync my iphone to my new computer but every single time i change the code it still appear the same…

    Reply

  331. 3/11/2009 11:52 EDT
    Running iTunes 8.02.20 and iPhone 2.2.1
    iTunes accounts are the same on both PC’s.

    I’ve checked, double checked, triple checked and after file manipulation the two files both have the Persistant ID of the first PC that is my main sync machine.

    When I start iTunes and try to sync it keeps saying it wants to delete everything on my iPhone3G.

    Reply

  332. [...] How to sync an iPhone with two (or more) Computers :: Shiny Things (tags: iphone sync library) [...]

    Reply

  333. I think you meant to say opposite to what you wrote.

    In “Find” enter the ID you took a note of in Part 1. In Replace, enter the ID you copied at the start of Part 2.

    Reply

  334. This does not work. I have tried it for two days now. I am running Vista 64 does that make a difference?

    Reply

  335. I had all my info on my home computer and it crashed. Is there any way that I can sync it on another comper w/o loosing any of this info or hurting it? Sorry rookie here =)

    Reply

  336. Just tried this on Windows XP running jailbroken iPhone 2.2.1 and ITunes 8.1. Worked like a charm. Used UltraEdit as Hex Editor. took all of 5 mins :)

    Reply

  337. I can NOT get this to work no matter what I do. Is there some kind of an extra trick to get this technique to work with two windows computers?

    Reply

  338. Hi there, this works across my 2 macs at home, but I also need to do my mac at work which doubles up as the file storage system/server.

    Does anyone know if doing this will affect my itunes library as a lot of people pull songs directly from my HD across a network?

    THanks

    Reply

  339. Thank you very much. You’ve done society a great service.

    Reply

  340. hey guys,

    i have a macbook as my main computer and a windows desktop for my home computer.i want to sync the music on my desktop without losing my music from my macbook library. is there a way to do that?

    just incase that doesnt make sense let me explain again ..
    my desktop has 4000 songs and my macbook only has 500. i want to keep it that way to keep my mac running fast. so basically i want to be able to keep music from both without having to erase one.. i want my iphone to be able to access both libraries. any help would be much appreciated

    thanks
    jay

    Reply

  341. what if you dont have your other computer ? …

    Reply

  342. Hello Dear
    I would like to find out if its possible to sync my iPhone with computer “A), which is broken with anohter computer “B”), The problem is that since my iPhone only recognizes computer “A”, and Computer “B” is new it my iPhone. How can I sync my songs in compuer “B”, and keep my song that are in my iphone, without deleting them.
    I kindly appreciate for your help.

    Reply

  343. it works for me with the music, but now the applications that were saved on my office laptop, now are not sincronized neither in laptop nor in home computer.

    I am getting a message “Some of the application in your itunes library, including “wordpower”, were not installed on the iphone “xxx’s phone” beacuse you are not authorized for them on this computer”.

    Any idea, I would not like now to loose those applications without backup.

    Can I reset and go back to at least sincronized in the office laptop, without the music?

    Any help would be greatly appreciated.

    Bests,

    Sox

    Reply

  344. Juste formidable !

    Quelle chance d’avoir trouvé ton blog ! Merci !

    Reply

  345. Hey Andrew, me and my friend developed a small app that does the whole job for you on a PC.

    http://www.mediafire.com/?g0ntygbpw7m

    There’s a option to grab the current ID, then save it somewhere. Then on the next computer there’s on option to automatically replace the ID code on the XML and ITL files (no need for a hex editor!)

    You can post the link on your main article if you like.

    Reply

  346. Thank you, thank you, thank you !

    Reply

  347. Just wanted to take a quick second to thank the writer of this extremely useful tutorial and very well needed by everyone who has music files in different computers.
    The time put into this software mod is very appreciated on my end!

    Will V

    Reply

  348. I’ve seen many ask “what if my original computer s hard drive crashed?” but have seen no answers. This is my situation also and where im stuck, can you someone help me with this question? Thanks.

    Reply

  349. [...] How to sync an iPhone with two (or more) Computers :: Shiny Things Partager, twitter, mailer, référencer cet article : [...]

    Reply

  350. Fantastic discovery Andrew! Well done, many thanks

    I found it so useful that I made this little utility to automate all that. Hope that someone finds it useful too.

    Cheers

    Reply

  351. Every time I have tried this i keep getting a message from the HEX editor saying… ” This window’s file is read-only, meaning you can’t make or save changes to the existing file! To save changes select ‘save as…’ from the file menu” I made sure the itunes library file was unlocked to read and write to everyone but i still am not able to swap out the old id for the new one using the hex editor. Can anyone help with this??? Thanks

    Reply

  352. [...] How to sync an iPhone with two (or more) Computers :: Shiny Things [...]

    Reply

  353. excuse me i forgot to note the line i change in the itunes music library.xml what can i do to find it????please help me
    thank you a lot

    Reply

  354. I just did this and it worked perfectly. My main computer is a G4 tower and my work PC is a Dell Core2 with XP. The only hiccup I had was forgetting to copy my old ID number from the XML file boefore I pasted the new one in. I deleted my library file, re-imported the music files to iTunes(luckily there weren’t too many) and went through the steps verbatim.

    I used a free Hex editor called “Free Hex Editor Neo” which seemed like overkill for what I needed. It didn’t have a field I could paste the whole hex value into in the find dialog, so I manually typed it in, found the offending line, and manually typed in the new library ID.

    I fired up iTunes and everything worked like a charm. I dragged all my music over and it copied like it should.

    Thanks man!

    Reply

  355. please i need some help
    excuse me for my english I am french
    Where can i find the number i erase in the itunes music library xml
    because now i can’t find the number in hex edit to find and replace

    thank you

    Reply

  356. I finally figured out how to do it after about a half hour. The first few steps are very easy, but not having ANY sort of experience working with hex data, I was having a hard time using ultra edit to do the final step. I then did a manual search for “.itl” and the first result was the file that needed to be opened. I guess it was hidden. once I opened that, I followed the rest of the directions and it worked like a charm.

    Reply

  357. I tried that iTunes DB Cloner utility posted above by Felipe and it worked like a charm for me. So far it is the easiest I have found.

    http://www.corsino.com/blog/?page_id=27

    It sounds silly but it checks if iTunes is already running and asks you to close it so files can be modified.

    Reply

  358. Is there any way to find the library persistant id I am replacing? I forgot to write it down before I changed it.

    Reply

  359. Doesn’t work here with iPhone 3G 2.21 and iTunes 8.
    The whole process is quite simple and straight forward.
    Perhaps things have changed? For example there’s no such file as “Tunes Music Library.itl” in iTunes 8.0.1.11 PC. There’s only “iTunes Library.itl”. And even then. Once “iTunes Library.itl” and “iTunes Music Library.xml” are modified, iTunes will still warn you about erasing :
    -Installed Apps
    -Movies
    -Songs

    Both files to be modified have been double checked.

    I’m sorry but this doesn’t appear to work anymore.

    Reply

  360. Worked for me. Two Macs both with iTunes 8.1 (50) on OS X 10.5.6. I also removed the “iTunes Library Extras.itdb” and “iTunes Library Genius.itdb” files. And I removed the Folder “Previous iTunes Libraries” (you’ll have if you’ve upgraded from previous iTunes).

    (IMPORTANT!!) I removed these files after I made the changes above but before I started iTunes. It might be a good idea to back them up incase something goes wrong ;)

    I first tried without removing these files/folder mentioned above and it did not work. Error message complained that the Library was from a newer version of iTunes? Anyways,iTunes recreated the two files, the folder is not needed.

    Just to clarify, some of you seem confused that you will be able to Sync with both computers? This wont work unless you have identical iTunes Music Libraries. This method will allow you to sync Apps, Calendars etc from 1 computer but add music and movies from 2 computers. Music and Movies will have to be manually managed or else they’ll be overwritten/deleted, with each sync. Easiest method, do not hit the “Sync” button on the second computer which is found when you select the device under iTunes. Rather to move music and movies onto the ipod/iphone, just drag them. Hope this helps.

    Thanks very much for the how to. It was exactly what I was looking for. I can now add songs to my iPhone from two different music libraries.

    Reply

  361. According to Apple you can use an iPhone with iTunes on multiple computers in ‘manual manage’ mode;

    http://support.apple.com/kb/HT1202

    In practice this doesn’t work so I will try your method, thanks.

    Reply

  362. Are Ringtones able to managed from two computers?

    How do I drag songs into iTunes and get them on the iPhone without pressing Sync?

    Reply

  363. It works perfect! Thank you very much!

    Reply

  364. TBone
    Yes ringtones can be managed manually from the two computers in the same manner as music and movies. Simply find the songs/movies/ringtones you want in iTunes and drag it over to the iphone/ipod under devices (all within iTunes).

    Before you do that, on the summary tab ensure that “Automatically sync when this iPhone is connected” and “Sync only checked songs and videos” are unchecked. And ensure “Manually manage music and videos” is checked. That should do it.

    Thanks again Andrew.

    Reply

  365. Ha ha…WOW!!
    works like a charm, you sir are a genius, 10/10!! I used Free Hex Editor Neo but still had trouble locating the hex values in my .itl file, then I came across Felipe’s tool which does it all automatically in the background, marvelous! I have iTunes 8.0.5 and I will not be upgrading that in along time! much respect, i was starting to lose my mid with this problem.

    Anyone having issues with hex files, search for Felipe in the postings and download his utility, another 10/10.

    Reply

  366. I almost got it, except for I did not make a copy of part one the new computer, I now cannot replace it in the .itl “find and replace” hex part of he process. Is there anything I can do to recover the orignal xml no.

    Reply

  367. [...] How to Sync An iPhone with Multiple Computers [...]

    Reply

  368. After trying for days to find a solution to transfer music to my 2G iPhone from 2 computers (or even backup Applications to both computers), I finally stumbled over your instructions.
    It works perfectly, exactly what I wanted!

    Thanks a million for providing the solution!

    Reply

  369. [...] a guy named Andrew Grant (bless his soul) who has a blog called “Shiny Things”.  His article describes in detail what you need to do to sync your library on two or more computers. Even the [...]

    Reply

  370. “…In “Find” enter the ID you took a note of in Part 1. In Replace, enter the ID you copied at the start of Part 2. Choose Rep…”

    Dude, you have this written backwards, even though your picture/diagram states it correctly. Your description should say…

    “…In “Find” enter the ID you copied at the start of Part 2. In Replace, enter the ID you took a note of in Part 1. Choose Rep…”

    I think all the people who have done it and commented just looked at the picture/diagram without actually reading word for word.

    …Just thought you’d like to know…

    Thanx for the iPhone fix…

    Reply

  371. HELP! I deleted my persistent library ID before copying it (then subsequently saved and closed the file)…can I retrieve it somehow?

    Reply

  372. I tried this with 2.2.1 on 3G and itunes 8.1 and it doesn’t work.

    I matched the key’s up exactly via copy/paste, and followed the steps 100%, but it still warns me that my library will be overwritten.

    Itunes also erased all the programs on my phone w/out asking. It asked if i would like to ‘back up’ my programs, which i chose yes. If i didn’t, it said it would remove all programs (which it did anyway!).

    It appears this hack no longer works

    Reply

  373. anyone getting this working with latest itunes and iPhone?

    when I follow all of the designated steps EXACTLY I get:

    “The file “iTunes Library” cannot be read because it was created by a newer version of iTunes.”

    anyone else have this problem/a solution at all?

    Reply

  374. Amazing!!!!

    Thanks!!!!

    Andrew Grant 1000 x 0 Steve Jobs

    Reply

  375. lewis,
    See my previous post above. It worked fine for me.

    Reply

  376. Awesome it Worked!! I thought I was gonna be out of luck…my computer that was linked to my iPhone completely crashed and I didnt have all my music and iPhone data backed up. However I did know my computer was having issues so I did a quick backup of data files like the iTunes folder. It did me some good because I was able to do this!! I was wondering though,couldn’t I just copy over the original .xml and .itl, or would that have caused errors?

    Reply

  377. This works perfectly. Your instructions were clear and to the point.

    However, Apps cannot be synchronized. Because, manaual sync is grayed out. Other people also asked this question.

    Is there a way to do this?

    Thanks,

    Sankar

    Reply

  378. Thanks, it works just great. For the guys out there who think it doesn’t work, you must be doing something wrong. Currently I have Itunes 8.1.1 installed in my Powerbook and my Iphone 3g is working perfectly. I would like to add one suggestion though, please do not confuse Itunes Music Library.xml with Itunes Library (LIB) when using HexEdit
    (http://sourceforge.net/project/showfiles.php?group_id=9366)I made that mistake and I took me a while to figure it out. But Hell yes, this works I’m so thankful. Keep up with the good work. You rock Andrew!!!!

    Reply

  379. Your method is excellent. Buy in my case I gave away my pc to another fellow workperson and I now cannot get the library id. I bought a new computer and I cannot sync withour erasing.
    Is there a way to get it from de iphone itself?
    thanks
    Nessim

    Reply

  380. @Nessim

    The Library ID has to be stored on the phone, which is what causes the problem in the first place. However to access the possible location of the ID (unknown to me, try a google search) can only be attained by “jailbreaking” or hacking your phone to allow the Root folders to be viewed

    Reply

  381. Hmmm… my old hard drive crashed and I have no wayof copying the library id from there. do youknow i can sync myiphone to my new hard drive?

    Reply

  382. u sr r a jeniass lol. just kidding u r the man tx alot.

    Reply

  383. just to let peeps know – if they had the same problem as me, if you remove the files as Hank says in post 10 it seems to work!

    ta Hank

    Reply

  384. Thanks so much! It worked first time with my old iMac at home and a new iMac in the office and iTunes 8.1.1 on both computers.

    Reply

  385. WARNING… this does not work in Windows with iTunes 8.1.1.10 and iPhone 3G OS version 2.2.1. Lost everything on the iPhone (several times) even without syncing just by plugging it in. It appears the new version of iTunes will actively delete all assoc. content to the option (Music, Ringtones, etc.) as soon as you turn the option off BEFORE one actually sync’s. All I wanted to do was sync my calander from my work computer and the leave the rest of the media sync’d from my home PC. Pure frustration.

    Reply

  386. Great job. Works perfectly. thanks

    Reply

  387. Thank you so much. This really helped :)

    Reply

  388. Yet ANOTHER reason not to buy a stupid iPhone. Friggen apple.

    Reply

  389. Thanks This worked Great!

    Reply

  390. Thanks a lot!!! Just what I need. Solves my problem. Great job!

    Reply

  391. hi, i am trying to copy and past the 16 characters into the Hex Editor, open “iTunes Music Library” (Tunes Music Library.itl on PC)by i can see the following that you stated. Can you advice.

    Please advice…
    There no – Select “Find and Replace” from the Edit menu.

    I can find the “Hex” matching is selected (not ASCII)in the system.

    Can you advice.

    Reply

  392. Hello,
    Thanks for the info, my IT bods have set this up, but and I must apologise for not having read all 339 replies to this thread, when I try and sync apps or get apps on the 2nd machine (set up and authorised) it deletes all the current apps on the iPhone. The music appears to be safe, but all the apps go. How do you (can you) stop this from occuring?
    I appreciate your time in this matter.

    Sebastian

    Reply

  393. Works perfect! thanks a lot!! for those who dont have Ultra Edit, just down load the 45 days trial version. Follow the steps and enjoy your music!!

    Reply

  394. it worked!! thanxx and God bless!!

    Reply

  395. hi there, when i get to the ‘find and replace’ part, i keep getting “___ string not found!’. what is the problem? thanks so much im practically IT illiterate haha:)

    Reply

  396. I’m getting the ‘string not found’ as well. I’m using the latest version of UltraEdit and iTunes. Anyone?

    Reply

  397. hi, i am trying to copy and past the 16 characters into the Hex Editor, open “iTunes Music Library” (Tunes Music Library.itl on PC)by i can see the following that you stated. Can you advice.

    Please advice…
    There no – Select “Find and Replace” from the Edit menu.

    I can’t find the “Hex” matching is selected (not ASCII)in the system.

    Please help.,.

    Reply

  398. I actually used this but not for syncing with two computers…

    For some reason my iTunes went haywire on me and I had to reinstall it and import all my songs again. When I tried to later sync my phone I couldn’t because it said it was already synced with another computer which was really just my previous library on this computer.

    Instead of finding my original library ID from the original computer, I went into the “Previous Libraries” folder and opened my iTunes Library in UltraEdit and copied the original and then replaced it in the other 2 files of the current library, and it worked! For some reason though, I’m missing a bunch of my album artwork, but I can handle that.

    Reply

  399. hi TK, i just resolved my problem!

    Make sure that not only your itunes is not running, your iphone is not plugged in as well. that may have been the cause of our problem!

    I did the reverse of what was instructed in the last part. Instead of entering the ID taken note of in Part 1 under the “Find” field and that copied at the start of Part 2 in the “Replace” field as stated, i entered the new ID (the comp u wanna sync with)in the “Find” field and the original ID in the “Replace” field.

    You can then plug in your iphone and select Manually Mangage and try dragging your music from the new comp into your phone!

    Reply

  400. oh actually my previous post was for hobblestone..

    for tk, you are using ultraedit as well right? if so, click on the “Replace Text” icon. It’s under the “Help” tab, after 3 binoculars icons! Dont think you have to worry about the Hex selection, just make sure you dont check any of the boxes:)

    Reply

  401. [...] [upmod] [downmod] How to sync an iPhone with two (or more) Computers (andrewgrant.org) 0 points posted 2 months, 1 week ago by jeethu tags itunes ipod tip sync [...]

    Reply

  402. this is confusing- but I’ll try it:( Will this work on a computer that isn’t a mac, and will it erase any songs from my itunes and will it mess up my computer? I want to sync the apps from my sister’s iphone onto my ipod touch, and I want to synce the snogs from my itunes on my computer to her ipod. Will this work?

    Reply

  403. When I saved from the HexEdit (after changing the 16 digit ID) the iTunes Music Library.xml and iTunes Library file had the “~” after it. I tried opening iTunes and said it was locked and could not be opened. The HexEdit created a new file when I saved the changes, so therefore I tried to delete the old file but this did not change anything. I also tried looking at the info for each file and it was not locked. I don’t know what to try now.

    Reply

  404. Im having the same problem with the computer where I used to have my iphone synce on, but what makes it more complicated my brother switched iTunes off of the c-drive onto his d-drive which both of them are located on the same computer and I cant find the itunes information that would allow me to find the original 16 digit code that I need to copy and paste with…Are there any suggestions at this point?

    Reply

  405. Hi,
    Will this work if I wanted to download a iphone app from my itunes to my girlfriends iphone. I don’t own a iphone but am developing an database using fmtouch and would like to see it run other than on my simulator, to see what is actually working and what isn’t on a real iphone.. :)
    Thanks,
    jimmy

    Reply

  406. WHOOP WHOOP WHOOP!!! You Rock!!

    I reinstalled windows and thus iTunes and until now have had a blocked iphone with regard to putting music on it…. why oh why seeing as apple allow you to authorise computers do they not associate those with the phones and allow you to re-authorise a phone with a library???
    I didn’t find the key by searching because the hex editor was a little rubbish that i used (not the recommended, but the string i needed to find was in the first few lines anyway.

    Cheers a bunch
    Dandymon

    Reply

  407. When i go to replace, prompted “Sears string ‘….’ not found!”

    Help Please?

    Reply

  408. Andrew Grant + Felipe = MAGIC

    Thanks Guys, works a Wonder!

    Reply

  409. Okay – beginner here. Where do I find the file ‘iTunes Music Library.xml’ ? I downloaded secrets and set Finder to show hidden files, but when i search HD nothing matches. Where is this file?

    Reply

  410. Never mind! Found it in Music/iTunes – thought it would be more complicated.

    Reply

  411. What if i dont have the computer that i orgiganilly had it on

    Reply

  412. when i bought my iphone i activated it on my boyfriends computer. now that its synced to his, i can not sync it to my new macbook. I did everything step by step and its still doing the same exact thing. i have a lot of apps and music on my iphone and dont want to be forced to erase everything :(

    why isnt it working for mee!!?

    Reply

  413. Hi, was going really well but forgot to write down the string that was on my 2nd itunes library, i replaced it without noting it and saved!

    Is there any way I can find out what this is so I can fix in binary form!!

    Would love to solve this problem!

    Reply

  414. Can I sync the iphone and ipod to the same music library file on multiple computers as well?

    Reply

  415. Brilliant work!! Now iphone is just as easy to dump music on anywhere as other mp3 players out there. phew!

    Reply

  416. you still lose all your apps from your iphone
    is there any way to stop that

    Reply

  417. I followed all the directions, and at first it erased all my apps and music of my first computer, and replaced it with the music of my second computer. This was disappointing, but I tried again after re synced with my original library. This time I clicked the option to manually manage and I hit apply. It seemed like it was going to delete my stuff again so I canceled it by sliding my iphone. For some reason this then let me drag and drop my music to my iphone. So it worked! I then tried my shuffle and it worked great as well. Hope this helps.

    Reply

  418. Hi,

    If you have no access to the computer that your iPhone is currently paired with (i.e. It’s been formatted, no longer have access to it, etc), and are really interested in keeping your iPhone media library, here is a brief howto on reading the Persistent ID directly from your device.
    Hope it is of some help to someone.

    Cheers

    Reply

  419. Thanks so much. Been looking for this for ages. Worked like a charm!

    Reply

  420. This is great, thanks a lot for publishing this, it will help me a ton when I’m traveling.
    For the people that find themselves having trouble: make sure that you look for the most recent version of your iTunes Library.itl and iTunes Music Library.xml files. I found out my computer had a couple versions from other backups, versions, etc. and that iTunes wasn’t actually using them. It may not be stored in the default location. If your second computer still wants to format your iPhone, you probably don’t have the right ID. Do a search on your computer for each of the files, if you find you have more than one, use the most recently-edited one. Hope it helps someone, I spent most of the day being frustrated with it!

    Reply

  421. wow… what a great tutorial on hacking. Thanks for this, I cant wait to try it on my machine at work. This is exactly what I needed!

    Reply

  422. I’m runing the latest Itunes and I’m trying to sync my Iphone 2g. or regular. I’m using an Imac and an Ibook I tried all the steps one by one. however when I plug in my iphone on the ibook (where I changed the codes in) it still gives me the message about erasing everything. so I’m frustrated and It doesn’t seem to work. I need help. Is there some I’m using wrong? btw I used HexEdit to find the code. please help me! :-(

    Reply

  423. Worked like a charm !!!!

    I now sync between my PC Laptop and MacBook Air with no problems !!!

    Thanks…

    Reply

  424. Thanks for the tip. Work perfectly as described. Now my Iphone can use Itunes from all my computers.

    Reply

  425. Reading through the responses, I see that donl (at 2008/07/21, 10:07) said that he managed to “move my music and applications from my iphone to my itunes”.

    So is this a way to get round the limitation that music can only be copied in the direction from computer to iPhone? If so, then it’s exactly what I need!

    Reply

  426. This seems like a really good idea but doesn’t seem to work on iTunes 8 – the itl file has a slightly different name and although I think I’ve followed the instructions slavishly iTunes demands that the Music and Podcasts be synced or they will be deleted from the phone (sort of the opposite problem…)

    Any thoughts or observations?

    Reply

  427. This is the second time I have looked for a solution to this issue… second time I have found the Answer! Just wanted to say Thanks! ….again!

    Reply

  428. totally worked for me – you legend!

    Reply

  429. Ok Ok still having problems – every time I try to sync my calendar on the work computer to the iPhone it wipes all of my Apps. Obviously if you’re all having a bettr time of it than me I’m doing something wrong – what is the secret?

    Cheers

    Reply

  430. this didnt work

    Reply

  431. Worked like a champ with iPhone 3G 8 GB, using iTunes v8.

    Countless hours of searching now have come to an end. THANKS!

    Reply

  432. hi,
    I have the same problem like Garth!
    Does anyone know the solution for this “prob”?

    thx alex

    Reply

  433. I have changed the files on both the xml file and the other one but it still comes up with the same message.i am running version 8.

    Is there anywhere else I need to change the numbers. I have checked details 3x and all seems fine.

    thanks

    Reply

  434. Excellent. Had to rebuild my Mac and the music all imported, but I did not want to lose my apps. Thank you for this tip!

    Reply

  435. I’ve followed the instructions for iPhone3 with iTunes 8.1.1.10 and I get a warning that my applications will be deleted… How do i combat this? Can i somehow backup my applications on my phone? or is there any way to get the second computer to sync with the apps as well as music etc…?

    Reply

  436. I usually am pretty bad at commenting, but this was such a fantastic discovery that it definitely warrants it. Thank you so much, it was painless and worked as directed!

    Reply

  437. i think i messed up
    i have a desktop and laptop the laptop is new as is the new itunes i just downloaded. i wish only to back up my iphone on the laptop. i followed your directions (almost). i found the files on my desktop. i typed in the desktop file (Library Persistent ID) then i went to the next step with the hex editor. (i think i was supposed to save the number/letter combo i typed over with my desktop information) thus when i opened the hex editor to find the string….duh.. i didnt have it. is there a way to recover from this?
    thx in advance

    Reply

  438. WHAT???

    Reply

  439. WHAT??

    Reply

  440. I followed these instruction to get my iphone 3G to sync with my new macbook pro from the original windows machine I’ve been sync’ing with. while the music on the iphone 3G is now accessible and I can sync with it, my macbook is no longer authorized with the itunes store, I can neither authorize or deauthorize the macbook, I get an error that says “the required directory was not found or has a permissions error”. I can’t play any protected music, nor upload purchased song from the iphone to the macbook.

    is there something tying the library ID to the machine Id that will make the technique describe above no longer work?

    Reply

  441. This worked great…thanks so much…for anyone that says it doesn’t work. make sure you find the .itl file and change the number there not the .xml file

    Do a search for all files and type *.itl
    this is the file you want to change in hexeditor

    Reply

  442. A wee update in case it’s useful. Just have the new iPhone 3GS and upgrading it from previous 3G. i used this fix on the older 3G phone and it worked as directed above. When I replaced with the 3GS I noticed that the music files are now greyed out on the second computer. I wondered if some of the new version 3 software had unfixed this fix – and I have not researched this at length yet – but basically I was able to overcome this by just checking the standard “sync music” box in the sync settings and choosing a group of playlists i wanted on the new iPhone. This overcame the problem enough for me – for now anyway. Something does appear to have changed around here!

    Reply

  443. I am running a 2G iphone with the 3.0 OS on it and iTunes 8.2 (23) for an Apple Powerbook G4 running OS X 10.5.7. I have to say that the first time I tried it I was still getting the error message. The problem was that when I used HexEdit_220 and I did the Find and Replace I didn’t hit “Find Next”, i merely hit replace. So it didn’t replace anything. The second time I tried this fix, I did hit next until it found the old ID in the HEX code, then I hit replace. THIS IS AWESOME.

    However I am still getting an error for Picture syncing. This computer has tons of pictures on it from my dad. I took over this computer from him. I created my own admin user. Everything else but the pictures is synced now with my iPhone, my WINXP machine, and now this Powerbook G4.

    So if anyone can tell me why everything works for syncing EXCEPT the pictures that would be great.

    Reply

  444. BRILLIANT!!! thank you for the tutorial. i had to create a new itunes Library on my work computer as it kept coming up with an error saying cannot open due to a newer version or something. i’m running 3GS with 3.0 and itunes is 8.2. thanks again

    Reply

  445. [...] How to Sync An iPhone with Multiple Computers [...]

    Reply

  446. I may have a dumb question. First of all, all of the above worked like a charm! But I think im finally running into troubles. After having updated to Os 3.0, My iphone wont receive any incoming calls, the person who’s calling gets to hear a message that my phone is turned off, even though I have full signal strength. After I do a complete restor, it works fine again. After re syncing however, it again does the above-mentioned problem. Any idea if syncing with 2 mac’s is the cause?

    Any insight is greatly appreciated,

    Cheers

    Reply

  447. Hey,
    Quick question – what if there are several OTHER legacy iPods that have ALREADY been synced to the SECONDARY computer. Is changing that computer’s library’s ID going to screw up syncing the other iPods to their original ‘home’ computer? My iPhone is synced to my PwrbkPro, but my kid’s iPods work with our older Mac Mini, but there are more songs on the older Mini I’d like on my iPhone too – see my question? Thanks so much!!
    -Michael

    Reply

  448. Working perfectly for me on 3g iphone OS 3.0, main machine = work PC, secondary, macbook.

    No issues with calls as suggested by a previous comment.

    Thanks for the step by step. It’s amazing apple don’t make this possible out of the box. But I still love my iphone!

    Reply

  449. Cheers mate!! Works, no problem. Using iTunes 8.2 with iphone OS 3!

    Reply

  450. Anyone out there developing a Mac version of Felipe’s awesome utility?? or something simliar to it?

    Reply

  451. Works great, thanks

    For the Apps sync, it seems that it works very well by simply
    copying all .ipa files from Music/Itunes/Mobile Applications you have on the machine you use to pick up your apps to the other machine.

    it will therefore not ask to delete the apps while syncing on the other machine.

    J.

    Reply

  452. Thanks it works with v 8.2 also.

    I have two PCs, one Vista and one XP. I made sure that I didn’t write anything down, but copies the IDs instead. I saved the first computer’s ID to a text file in notebook, then I emailed a copy of the ID to myself. I opened the email on the second computer and copied it to the XTL file after saving the 2nd computer’s ID to a text file in notebook. I then used the file to copy the second ID when find and searching for the HEX.

    I’m sure I would have screwed something up if I hadn’t just copied and pasted.

    Thanks so much.

    Reply

  453. Ahhh! THank you! WOrked on OS 3.0 iPhone with iTunes 8.2.0.23 on Vista.

    Reply

  454. I am curious if I am doing something wrong??? I know exactly how to perform the steps but what i am curious about is if this works with an existing itunes library because I am trying to keep the contacts, calendar, notes, music, and photos synced between my Win XP machine and my Powerbook G4. Am I suppose to have all those boxes checked before I change the persistent id of the library I want to sync to? For example, I have the 2G iPhone running 3.0 synced with WinXP (all items mentioned), then when I change the id on the Mac, and try to sync it, it says that the phone is synced with another itunes library and it’ll erase eveything on iphone, huh???? I can sync it all but the music and photoes because I have music and photos on the phone that aren’t on the mac yet but ical, contacts and notes is ok to overwrite on the phone with whats on the computer. Any help would be appreciated. Sorry so long………

    Reply

  455. this is excellent! and easy to follow.

    however i have one small snag – i now can’t modify any meta data for any of the tracks in my library? i.e track name, album artwork etc

    any help very gratefully received!!
    thanks for you help so far :)

    Reply

  456. apologies.

    i have pinpointed this is an issue with the harddrive i have all my music on NOT to do with this trick.

    i therefore give *****
    a thousand thank yous – excellent

    Reply

  457. waw million tks mate

    Reply

  458. Andrew,

    This is a great process if we have BOTH the ‘computer to move iTunes Library FROM’ and the ‘computer to move the iTunes Library TO’.

    What can I do if I my pc crashed, and I had to re-format all my progams – including my os? In this case I do not have the data to copy ‘FROM my itunes library’ over to the new one.

    Is there anything that can be done in this case?

    Mate, if you could me I would be most grateful. I am stuck with Windows 7 and have just re-installed all my programs… alas my beloved iPhone is stuck between a rock and hard place.

    Any ideas would be greatly appreciated,

    Bart
    Australia

    Reply

  459. Yep, I lost all my apps.

    Reply

  460. [...] How to Sync An iPhone with Multiple Computers [...]

    Reply

  461. Just wanted to say massive thankyou – worked like a charm!!! (with itunes 8.2 iphone 3g os3.0)

    Cheers :)

    Reply

  462. Fantastic! Thanks for sharing this.

    Reply

  463. I can get the 2nd computer’s iTunes setup correctly. I want to just sync with my 2nd computer for my work calendar.

    The problem is that iTunes keeps trying to sync applications, and since I have no apps on my 2nd computer, it erases all of the apps off of the phone.

    If I try to uncheck the sync apps block, it warns me that doing so will cause it to erase all of may apps.

    So, how do you sync with to computers without erasing apps?

    Reply

  464. Yes, I lost all my apps, too. Now reinstalling from original computer. Think I’ll leave well enough alone.

    Reply

  465. To the two people that found as I did that the apps get deleted every time you sync:

    I first reported this problem a while ago and have never found a solution but I can tell you that the problem appears when you both sync and use this workaround.

    You don’t need this hack to have your address/calendar on one computer and media on another – itubes abd the iphone cope well with this – I do it all the time and if this is all you want then reverse out of this back and follow the instructions in itunes. Note however that I got unpredictable results when syncing the address/calendar to two machines so I don’t do that any more (I think they want to sell you MobileMe so they’ve planted a bug, or is that too cynical).

    This hack I think works best if you have an iphone paired with a computer and want to “throw” media across from a second computer – but don’t sync with a computer that you’ve changed the identity on or you lose your apps every time a coconut.

    Happy to be advised if I have any of this wrong…

    Reply

  466. To those of you that are having problems with loosing apps:

    Uncheck the boxes “Automatically sync when this iPhone is connected” and also “Sync applications” under the applications tab.

    When you click the sync applications button iTunes will say that it’s going to wipe all your apps. Continue and click apply in the bottom right. Wait for the *setting* to apply (about 1-2 seconds), but cancel the sync before iTunes starts wiping all your apps.

    I did this and now I am able to manage my music using both my desktop and laptop without iTunes wiping my apps.

    Good luck!

    Reply

  467. ^^^^^^

    Addendum: You can re-click the box “Automatically sync when this iPhone is connected” after doing my aforementioned step. iTunes will say that it’s going to wipe your apps, but it doesn’t.

    Reply

  468. Instead of hacking the files, I simply copied my entire iTunes folder from the current computer to the second one. Now my iPhone syncs with both computers and I didn’t have to hex anything. Thanks anyway.

    Reply

  469. Cracked it!

    Now can update in both places. you sir are a ledgend!!

    Reply

  470. Thanks a million Mojo, your application worked great!!! Once again thanks!!!!!!!

    Reply

  471. Hello, this doesn’t seem to work for me. I can’t seem to find the code pattern in Tunes Music Library.itl using the ultra edit program as well as other kind of hex edit programs. I’ve even downgrade the itune 8.2 to older versions like 8.0.1. I’ve completed the previous steps successfully. I’ve used this method before and it worked. And now it doesn’t. Can someone help me please?

    Thanks.

    Reply

  472. No matter what I do, computer 2 keeps replacing my music from computer 1. Apps sync ok between both computers though.

    Any help would be greatly appreciated.

    Thanks

    Reply

  473. What if you do not have access to the other pc?

    Reply

  474. This didn’t work for me on iTunes 8.2 (OSX 10.5.7). First there is no “iTunes Music Library”. There is “iTunes Library”, “iTunes Extras”, and “iTunes Genius”.

    I edited all 3 in HexEdit and couldn’t find the Hex string from the article.
    :(

    Reply

  475. I’m running iTunes 8.2 and an iphone 3gS and This worked like butter! Thanks man for saving me the money i was going to spend on an external hard drive… TWO THUMBS UP!

    Reply

  476. Wow, thankyou so much.. took me about 15 minutes but got there in the end!
    Fantastic, such a result!

    Thanks again :)

    Reply

  477. A quick question re syncing to a new computer – does this also transfer contacts, mail, calendar, etc?
    Thanks

    Reply

  478. im using windows xp, and can’t seem to find “Tunes Music Library.itl”. PLEASE SOMEONE HELP ME!

    Reply

  479. Genial !
    Thx
    You win beer or a glass of french wine ! (Avalaible in Paris.)

    Reply

  480. Thanks a lot! It worked great. :D

    Reply

  481. What if the PC where I first synced my iPhone already crashed. How can I now sync my iPhone, with the existing data I want to keep, with my new MAC?

    Reply

  482. Anyone got this working on Mac OS X with iTunes 8.2.1 (6) ? I mean, syncing music from 2 computer?

    There seems no real clear answer!

    Any help will be great :)

    Reply

  483. This is great! But do you have any ideas for going the other way? I want to put the music that’s already on my iphone (loaded from my laptop) onto my new desktop. All hardware and software is relatively new and all up to date. I’d really appreciate any help!

    Reply

  484. Gen says:
    2009/07/21, 03:26
    Anyone got this working on Mac OS X with iTunes 8.2.1 (6) ? I mean, syncing music from 2 computer?
    There seems no real clear answer!
    Any help will be great :)

    YES, nervously I continued to search for what the heck the iTunes db file type is called for OS X.

    My primary computer/iTunes Library has been a macbook, but drive space is becoming an issue.

    my office workstation is a mac pro.

    I followed the step-by-step perfectly…however, mac (OS X) doesn’t have “iTunes Libraray.itl”.

    to clarify:
    my macbook currently has all my music.
    my mac pro has a fresh install of iTunes (no music yet)
    my goal is to migrate all of my music to the mac pro, but be able to sync my iPhone with the macbook and mac pro.
    **final goal is to finish setting up “mojo” so I can remotely pull down any music from my mac pro (over the net) to my macbook…should I be out of town.

    note: in my situation, I’m describing it as I did it…mabook is original, mac pro is the 2nd computer

    1. search for the ID on macbook, write it down
    2. search for the current ID on mac pro, write it down.
    3. backup .xml and the db on the macbook and mac pro
    4. follow the original step-by-step instructions

    5. on the mac pro (2nd mac) when you get to the step to edit iTunes Library.itl (for a Windows PC)…instead you locate and edit file “iTunes Library” (same folder as iTunes Music Library.xml”.

    on my mac pro, I used “HexEdit” (FREE, just search google) to open the “iTunes Library” file (the db)…open a search, set to HEX, enter the ID of mac pro to “find”, below that enter the ID of the macbook to “replace”.
    click replace
    close, save

    open iTunes on the mac pro, connect my iPhone, it sees it instantly…and it’s already set to manage manually (my normal setting)!

    good luck and thanks to Andrew :)

    -Ben

    Reply

  485. Awesome, love it. You have made my life better. Thank you.

    Reply

  486. ok heres my problem since my iphone was a present from my parents i dont know the itunes ID of the other computer the iphone is synced with is there any other way …cuz i want to manually sync it but every time i replug it the music turns gray the the box unchecks itself >.< iphones are so confusing ):

    Reply

  487. Dude, you saved my life! I was absolutely enraged that Apple wanted me to ass-rape my iPhone and force me to wipe everything out just so that I could sync my iPhone G3 with my new MacBook Pro (I’ve just upgraded from an old G4 which is where I had been syncing the iPhone) running OSX 10.5.7 and iTunes 8.2.1. After a bit of googling I found your page and read your instructions and followed them to the latter and WHAMMO, everything worked. I was able to sync the iPhone with iTunes and even able to backup my iPhone applications just as I’d been doing on the old G4 PowerBook. Woo hoo! You rock! In fact, I’m thinking of writing a little Objective-C application that implements your instructions as I see from previous posts here that a PC developer has done this for WIndows already. Once I write it, I’ll post a link to it here. Very nice. I’m very happy. Thanks again for the great info!!

    Reply

  488. Great work solved a huge problem for me!

    Reply

  489. I tried this with an iPhone 3GS, iTunes 8.2.1.6, one Library on a Mac, the other on a PC…And it worked like a charm, thank you very much!!

    Reply

  490. I have actually created a small tool (PC only) that does all the work for you

    feel free to download it here:
    http://www.megaupload.com/?d=6QKYMDEZ

    Reply

  491. This is a great hack and worked perfectly. I just want to point out that the last step in the directions is reversed. It says to use the number from Part 1 to place in the find box, and replace it with the number from part 2. By doing that you would be trying to find the number from the pc you originally sync with on the additional pc, it wont be there. What you want to find is the number you found and copied to the clipboard in step 2, and replace it with the number you copied and saved in step 1.

    Reply

  492. Just tried using 10.5.7 and itunes 8.2.1. Didn’t work…then i saw that everytime I saved the updated “iTunes Library” file using the hex editor, a new file was auto generated (by the OS) called “iTunes Library~” in the same folder containing the original ID…??? Anyone else???

    Reply

  493. YOU ARE MY HERO! Thanks.

    Works as described. Can’t believe this isn’t a standard feature.

    Reply

  494. I have tried this several times and cannot get it to work. My original settings I was syncing Contacts at work and Music/Videos/Photos at home. I followed the guide and have gone over it twice. Still now success. If automatic syncing is enabled it simply erases everything on the phone. If manual management is used it gives the warning. The two systems are running XP with iPhone 3G (3.0 OS) and iTunes 8.2.1.6
    Any suggestions???? Very frustrating

    Reply

  495. Doesn’t seem to work on the iPhone 3GS running OS3. :-(

    Reply

  496. this hack is USELESS

    jailbreak your iphone and download ‘swaptunes’ off cydia

    SUPER EASY, none of this itunes hack rubbish

    Reply

  497. i take it back swaptunes is not as good as i thought it would be

    all it does is remove your itunes off your iphone temporarily (i.e swap it for a blank template) so you can sync freshly

    but it sux to do it that way

    grants instructions are on the news shown on youtube

    Reply

  498. Hope this works. Saw somebody had trouble with mac recreating the library file. Sounded like apple protecting critical files. Can’t believe I have to go through this though. Sometimes apple astound me in their awkwardness. I like their stuff but…. You just want to go and get them to justify things like this…… AAAAAAHHHHHHHH. On a non shouty note, many thanks.

    Reply

  499. The temptation when I get my new macbook is to go to the apple store in Regent Street and show them it trying to delete all my iphone music library and keep arguing louder and louder til they get no sales for an entire day. One of the police they send to remove me will probably have a mac and will probably join me in the protest.

    Reply

  500. Somebody should set up a shop outside the iphone store which gives advice like this about how to get round stupid apple limitations and advising people to jailbreak if it is their interests. Sorry will rant on their website and you can delete this when I remember the password I used on their system. …… funny aside couldn’t register with apple uk discussions with a uk phone number so had to put in a US one. Had to use the US apple helpline number didn’t I. Made me smile for a few minutes.

    Reply

  501. hi
    carried out this procedure and it seems to work for apps, contacts and purchsed music, however when i try and sync my photos and music it keeps saying sync will delete music on iphone and replace it with library which is empty except for purchased music.

    Reply

  502. it doesnt seem to work for the new itunes is it?? cause ive been trying to find the pattern in HEx but it doesnt seem to find the code..? am i doing somthing wrong??

    Reply

  503. Does this still work with the lastest iPone? iPhone 3Gs? I followed the docs but I still get the warning prompt. Thanks.

    Reply

  504. This hack DOES work on latest mac operating system and iphone OS3 (and I presume Windows). As Ozzie said in a previous reply the ‘last step needs to be reversed’. The ID in part two goes in the find box and ID part one goes in the replace with box. Press replace all and you will be able to safe the change.

    Reply

  505. Hello,

    First of all thank you for this information. I have been unable to find it in other places. But I am a little confused as my situation is a bit different so I am wondering if you would kindly give instructions.

    Basically I just use my music at home but I use Outlook’s calendar, contacts and notes on BOTH work and home. (I have PCs running Windows XP on both).

    How can I synch Outlook on both without deleting the music? Would I do regular full synching at home and then at work just check off Contacts, Calendar and Notes in the info section of itunes but nothing else? Are there any commands I need to do anywhere else in my computer?

    Thanks,

    Bonnie

    Reply

  506. Andrew,

    Thanks a ton it worked great the first time, but for music only. I get the same message(erase all on the iphone) for Photos, Movies, and TV shows after I changed the string. Is there a similar process or did I forget something. Obviously I would like to sync all data on the phone with both computers (and I didn’t even try contacts or calendars yet). thanks again.

    Reply

  507. I just bought an imac for my wife and want to apply your operations but when I use hexedit the imac open a read only file such as I can not save the replacement I did… Please can you help me?

    Reply

  508. Thanks! This works great, but I tried to use the HEX editor xvi32 first which didn’t work for me. With Ultra edit no problem.

    Reply

  509. Thanks for sharing. U da MAN!

    Reply

  510. Updated both files as mentioned, but when synching on 2nd itunes im still being promted about erasing content. any ideas?

    Reply

  511. I used Time Machine to restore computer several months back and I don’t have the same iTunes anymore. Is there any way to get the persistent code from the iPhone and copy it over to my newly restored mac?

    Reply

  512. (PC – iTunes 8.2.1.6)

    The .itl file now seems to be called “itunes Library.itl” and I cannot for the life of me find the ID string from the XML file from the same PC…

    I even edited the XML file, putting in the ID from the PC in step 1, deleted the .itl file from PC2, and iTunes recreated it, but still it says my iPhone is synced with a different library…

    HELP???

    Reply

  513. Worked flawlessly for me. I used XVi32 with out any difficulties. No music was erased and no apps were deleted.

    Thank you, sir.

    Reply

  514. What am I doing wrong?

    The file is called iTunes Library.itl, is it not?

    It’s in : My DocumentsMy MusiciTunes which is the same location the .xml file is in, yea?

    I look for the ID code from the XML in this location, but cannot find it using UltraEdit…

    Reply

  515. Crisis averted – i got it working :)

    Reply

  516. I can’t get this working. I’ve changed both the xml and itl on my second pc with the id from the first and I still get the warning about being synced to another itunes. Iphone 3gs, os 3.0.1, itunes 8.2.1.6. Any suggestions?

    Reply

  517. I’ve got a legit question: I don’t sync my iPhone… i manage it manually. I use it mainly on my PC (XP). I don’t want to sync it with my PC, nor do I want to sync it with my MacBook Pro that i just bought… can i manually manage it on both? I don’t want to mess anything up before I actually follow your instructions above because it seems to be only for people who sync their iPhones on at least one computer…

    Reply

  518. THANK YOU!! This worked for me.

    HOWEVER — I think you might have inadvertently misstated which persistent ID to find and which to replace in the.itl file.

    You wrote: In “Find” enter the ID you took a note of in Part 1 . In Replace, enter the ID you copied at the start of Part 2. Choose Replace All, there should be one match.

    In “Find,” I think you need to enter the ID you took note of in Part 2; in “replace,” the ID you copied in part 1.

    Might be the reason it’s not working for some people??

    Reply

  519. [...] andrewgrant.org/2008/03/30/how-to-sync-an-iphone-with-two-or-more-computers.html [...]

    Reply

  520. I did exactly what you said. When I go to the ‘music’ tab on the second computer (with the newly replaced ID), it says “Are you sure you want to sync music? All existing content on the iPhone “” will be removed and replaced with the song and playlists from your iTunes library”.

    I obviously do not want anything removed.

    I’ve double checked that I have the right ID inserted but cannot work out why it is still asking me this.

    Help pls?!

    Reply

  521. YES! Great instructions…great results! Thanks, A.G.

    Just a word of caution to those reading the comments before taking action:

    MAKE SURE you have BOTH “Library Persistent ID” #’s written down before you begin. I made the mistake of not copying the original (the one I was replacing) & had to “dig” and “guess” in Hexedit. It was scary.

    Reply

  522. If the itunes library that is in my phone currently is not mine, it is one from a freinds library and I follow your instructions on modifying on my home computer so that I can add my library back onto my phone as well, will this in anyway mess up anything with my friends itunes library, or can I use a family members library id to modify my library id , without losing the itunes library that I synced from my friends library?

    Reply

  523. My problem is that my computer was stolen, and I just got a new mac. So i don’t have the original persisent ID code, but I want to sync my iphone with my new computer and not lose any of the music I have on my iphone. I want the music on my iphone on my new computer.

    How can I do this?

    Reply

  524. Worked Great for me. Thanks!
    make sure not to get in too much of a rush and follow the directions EXACTLY- I copied a songs persistent id the first time instead of the Library Persistent ID #.
    If you are careful it should be a snap.

    Great work!

    Reply

  525. Brilliant! There were two errors in the procedure, both obvious if you’re thinking about what you’re doing. The files that need to be patched are called iTunes Music Library.xml and **iTunes Library** (not iTunes Music Library) and as several others pointed out, in the last step you want to find the ID# of the library you’re patching and replace it with the ID# of the library your iPod currently syncs with. I successfully patched my iTunes library files on my new MacBook Pro running Leopard and iTunes 8 with the ID # of the library on my old computer running iTunes 7 under Panther. Thanks so much!

    Reply

  526. You are a lifesaver :) . Thank You.

    Reply

  527. wowwwww:D:D:D Beautiful:) A million thanks, finaly:)!!

    Reply

  528. Need Help… followed steps and get error message that 71 apps will be deleted. Am I missing a step?

    Reply

  529. Worked perfectly! What a lame limitation of iTunes and the iPhone.

    The other thing that I want is to be able to take music from work, put it on my player and copy it to my iTunes library at home. Sometimes I rip CDs at home and sometimes I rip them at work. Trust your customers, Apple!

    Reply

  530. thanks you work greats

    Reply

  531. [...] How to Sync An iPhone with Multiple Computers [...]

    Reply

  532. These steps are no longer nesescary with iTunes 9. Multiple computer sync work out of the box. You can even sync different parts of the content with different computers… :)

    Wish

    Reply

  533. hi
    I followed the instructions, everything seemed to be working well and the 2nd computer was synced with data. however trying to sync again music and ringtones with the original computer didnt succeed. itunes sends messege that “the required disk cannot be found”. if I don’t mark ringtones and music, everything syncs well.

    Does anybody know any solution ?

    Reply

  534. I’m having troubles finding/replacing the ID in the hex editor. I’m using the UltraEdit but it won’t find the origional ID so i can’t replace it with the new one. Am i missing something? i got it changed in the .xml file but can’t find it in the .itl file.

    thanks!

    Reply

  535. Same here Alex..

    No chance to find the id with the HEX editor in iTunes Library.itl

    iTunes Version is 9.0, possibly the file format changed?

    Reply

  536. Outstanding! I just did this using iTunes 9.0 and it worked perfectly. Thanks for the insight to unlocking this capability.

    Reply

  537. HELP! i have an ipod, iTouch and now an iPhone. iPhone is the one i’m having difficulty managing. The iPhone was set up at the office computer (XP), and now i’m tryng to sync with home pc (XP). i was able to add music by creating a backup copy of my library (hold Shift while opening iTunes, then followed some steps). But now i’m trying to add video and photos, but i get the message that my current photos will be erased. I changed the IDs on both the XML and the .itl file, but still getting the message…suggestions?

    Reply

  538. hi,
    I’m on OSX 10.6.1 with itunes 9. A few month ago I changed itunes xml file to be able to synchronize my iphone with more computers.
    The problem is that to be have Home Sharing working, I need separate ID’s (right?), so I tried to revert the xml file without any result.

    Hex Fiend just doesn’t find it any more. So I can’t ues the home sharing possibilities…
    Does somebody has a solution fro this? Would be appreciated.

    d

    Reply

  539. One more heartfelt “Thank you!”

    Reply

  540. Hello,

    I also can’t tranfer music to my iphone. It was posible before but my laptop crashed and now after a new installation it isn’t possible to transfer and to change the library id because i don’t know the id from the “first” itunes… I hope that you can help me!

    Thank you i advance.

    Reply

  541. latest Post 484 is the same with me,
    can I find the Itunes ID on my 3GS also ?

    would be a big help.

    Thanx in advance !!!

    Reply

  542. What about applicaions? The sync with computer #2 forces the applications to be deleted…

    Reply

  543. works great! was a little nerve racking, but i have no problems syncing on both computers now. however, on my “second” mac after saving the hex edit file it created, in my itunes folder, another “itunes music library” followed by the symbol “~”

    (to be clearer, in my itunes folder i have:
    itunes music library
    itunes music library~
    )

    should the old one be deleted? or the new one? i’m just curious as to what the symbol “~” may mean, and if it could give problems in the future when it may be hard to find the original codes, etc. etc.

    great hack though! as a music producer, having one computer for the studio and another on the road, this is a god send!

    many thanks!

    Reply

  544. hey so, do u no a way on ddownloading info from iphone to laptop witout using back disc? cuz my comp harddrive got whipd from a rlly bad viruse and now i just want to add more music on my laptop ect

    Reply

  545. Thanks man… Works great… Exept i can’t transfer music from iPhone to the second computer:(

    Reply

  546. thanks a lot. it worked for me, from windows vista to snow leopard, using itunes 9.0.1 and iphone 3gs with os 3.1.

    although itunes said me that all apps will be deleted, it was not the case. in fact itunes first saved purchased (free too) applications and keep them on my iphone.

    however, i lost all my songs because i was not managing songs/movies manually. now it is the case, so i will be able to copy (not sync) my songs from my first computer and copy the movies from my second computer.

    Reply

  547. hey man thanks for this tutorial, i got my ipod touch 3G running 3.1.1 syncing with both my laptop and home computer (both running vista) and itunes 9.. but not exactly the way u said.

    i did all the steps and tried to sync but kept having that “itunes is gunna erase all yr songs” error. So i got fed up and went to copy “iTunes Music Library.xml”, “iTunes Library.itl”, “iTunes Library Extras.itl”, “iTunes Library Genius.itl” and that hidden “sentinel” file from the host computer to my laptop’s itunes folder.

    i started itunes and saw all my music in the library but with little exclamation marks on the left of em. All this music was not in my laptop but in the ipod. I then tried to sync and got THE SAME erase songs warning msg, but i thought f it and just went to sync.. and it worked!!

    Hope this helps anyone in the same situation as me.. Mebbie that warning msg is false? In any case..

    I HATE U ITUNES!

    Reply

  548. [...] by Andrew Grant. He deserves credit for his work. You can check out his blog posting on the subject here PART TWO (WINDOWS): If your secondary computer is a Windows PC continue [...]

    Reply

  549. Sildenafil citrate, cheap viagra, 7346, [URL=http://www.viagrausadiscount.com/]discount viagra[/URL], d(((, http://www.viagrausadiscount.com/ Viagra, ldvqcr.

    Reply

  550. Dear Andrew,

    Thank you for this comprehensive explanation on how to solve this annoying problem. I recently purchased the iPhone 3 GS and did in fact apply what you explained above. Unfortunately, it still did not work. I have double checked everything but, alas, no success. The only change that occured was that the machine (PC2) that i wanted to sync with has erased all the playlists. When I connected the iPhone, still, the iphone playlists were inactive and I could not drag & drop anything from the 2nd PC . Your feedback will be appreciated.

    Reply

  551. forgot to mention that I am working with VISTA and my iphone has the latest update + itunes v9.

    Reply

  552. bingo. works again for me. iphone 3gs 3.1.2 with itunes 9.0.0.70 on windows 7. all i want to do is pipe the tunes on my iphone through my work laptop while traveling. shame on apple for making it so tough!!!

    Reply

  553. I’ve been googling left and right, this is awesome, the only thing is that on my computer I usually sync my itunes with is now fucked up… so I wanted to sync to my old laptop, temporally until I get a new laptop, so I can’t do a backup on my fucked up laptop..cuz I don’t wanna loose everything, is there another way to get around that?

    Reply

  554. Hello,
    I am not as savvy as the rest of you when it comes to computers but I am slowly learning. I downloaded the HEd Editor that you had a link to but I cannot figure out how to open Hex Editor so I can open the library file. The software I downloaded has soo many files so I am not sure which one to open.

    Please help me.

    Cheers,
    M

    Reply

  555. Hey! Thanks for your useful tip, as I saw it worked for so many people.
    Unfortunately, although I did exactly all the steps it doesn’t work to my mac. :( Any help what to do? I have a PC at my workplace and a mac at home, I took the ID from the PC and I replaced the ID of mac with it as you advised but nothing.

    Reply

  556. This works OK but keeps on erasing all applications when syncing to my works computer. Since this PC is behind a firewall i can not access itunes store to download the same apps. I have tried to uncheck the “Sync Applications” but this just removes the apps anyway. When i connect the iphone back to the main itunes library it installs the apps back. Any ideas?

    Reply

  557. Works perfect on my new iPhone 3gs. I have no idea why Apple disables this. Thanks!

    Reply

  558. Just did this with my new iPod Nano 5G.

    I want my main computer to sync automatically and my other computer to manually sync but each time I plug it into either computer it makes me remove all music on the iPod and replace it with the music on the current computer I plug it into.

    Does not work! :(

    Reply

  559. This process didn’t work for me and I went through it 3 times. I’m using an iPhone 3GS and the newest version of iTunes. Has anything changed in the phones software or in iTunes since this was originally posted? Do you have suggestions on next step(s)? Thanks!

    Reply

  560. [...] http://www.andrewgrant.org/2008/03/3…computers.html ^ good luck with that. I use SharePod to copy my music to (my) multiple computers __________________ Vista.x64.FAQ :V MP3.Server :V Disable.TCP.Auto-Tunning :V Best.Wallpaper.Sources LEARN ABOUT FOLDING@HOME Quote: [...]

    Reply

  561. Thanks but unfortunatly didnt work for me =( big shame

    Reply

  562. Thank you so much for making this process so easy!!!

    Reply

  563. Too bad, this didn’t work for me. ):

    Reply

  564. Still working for me on the latest version
    many thanks

    Reply

  565. This used to work for me but I can’t get it to work anymore. Shame now that I have to format my iphone.

    Reply

  566. Worked great for me. iPhone OS 3.1.2, iTunes 9.0.1.
    I used HxD hex editor for free from cnet.com. Just make sure you replace with hex and not text.

    Reply

  567. Excellent fix, works perfectly. Thanks for doing the leg work for us simpletons.

    Reply

  568. Herbalism leveling guide and joanas leveling guide 80 check my tips…

    [...] MK@ Dwarfpriest posted after about 12 months of silence. For those who don’ t know MK wrote some of the best priest posts of 2008, especially around the 3. 0. 2 patch and Wrath. S/ he has been unable to play due to health issues, which many of us…

    Reply

  569. I have a question: would this also work in case you have a second iTunes library on an external hard drive? Which of course is connected to the same computer.
    Because trying to connect to that external iTunes library gives me the same option of deleting all data from the first… Both libraries were created and managed by Libra.
    Or is there another solution for that?

    At the moment I am “simply” importing albums from the external hard drive, copying them to iPhone and then deleting them… but that is way too much hassle. And I have tons of stuff there…

    Reply

  570. I backed up my computer off site because it was acting like it was going to crash. I ended up having to take it back to factory specs and now have an iPhone full of music that isn’t recognized by the new iTunes I downloaded. I bought a new album before I realized the iTunes did not pick up the previous iTunes music in the upload.

    How can I safely get the music in my iPhone into iTunes without losing it?

    The answer you posted here makes me think I can use this or something similar since I am getting a warning that I will lose all the palylists on my phone if I sync. Can you help?

    Reply

  571. DO NOT DO THIS!!! – I don’t know how out of date this is, but I just tried it on my iPhone 3GS running 3.1.2 and iTunes 9.0.2.25 and, not only did the music on my phone NOT sync to iTunes, but it erased all my music AND apps from my phone. This hack pretty much just stops iTunes from telling you it’s going to delete everything on your phone, but it does so anyway. I hope this helps someone else before they do this.

    Reply

  572. You can move the music to iphone on more than 1 computer but you cant sync with more than 1.

    Reply

  573. [...] permalink I hope this helps How to sync an iPhone with two (or more) Computers :: Shiny Things [...]

    Reply

  574. THANK YOU! You’re my hero. My iPhone was stuck with the iTunes on my husband’s computer. What the heck was Apple thinking, that you can only sync your phone with one iTunes?? Like people never buy a new computer … or use a work computer … or whatever! Okay, that’s a tangent. What I mean to say is that this worked awesome (on a PC, used Hexedit) and I wanted to say thanks. Thanks!

    Reply

  575. I’ve followed the instructions but still get message:

    “Are you sure you want synchronize podcasts? All existing podcasts on iPhone XXXX will be replaced by podcasts from iTune Library”

    You refer to slightly different warning message in the article. I didn’t get “your” message even before I replaced the Library ID numbers. I only get message as above. May be your trick is not supposed to fix the message I get?

    Is it another way?

    Reply

  576. Ah, I’ve just read answer #28 by Andrew and I think I get it now how it works…

    Reply

  577. Does not work on iPhone 3GS and iTunes 9.0.0.70.

    It will WIPE OUT ALL your iPhone apps if you left the “Sync Application” on, and will WIPE OUT ALL music on your iPhone unless you select to “Manually manage music and videos”.

    Even if you manage the music and videos manually, I cannot figure out how to copy them into the PC using iTunes.

    Reply

  578. 2Boon

    You cannot copy the material _to_ PC. Only _from_.

    After you did all the above you do the following:

    1. Check off auto sync
    2. Check Manual sync
    3. DO NOT CHECK SYNCHRONIZING of your music, films or podcasts! This will cancel manual sync.
    4. Drag and drop media from your computer to your iPhone.

    Reply

  579. Andrew

    My laptop hard drive died and was replaced. iTunes thinks it’s a new computer and won’t let me upload my library from my iPod to my laptop. Is there any way to do this?

    Thanks!

    Reply

  580. @timofej, thanks for the info.

    In both my PCs (not in the same network area), music and podcasts are downloaded separately. I thought that iPhone can help me to keep both PCs in sync.

    I suppose I can still drag & drop media from one to another based on date added. Not ideal, but will make do for now. :(

    Reply

  581. Hi,

    I’ve developed a proof of concept C code, that does your iPhone syncing with multiple iTunes/Macs.

    Fell free to download it from: http://aladino.dmi.unict.it/?a=unlocker

    happy sharing!

    Reply

  582. Hey, thanks for the insight. I was not successful with your instructions b/c you did not specifiy what to use if you have Window XP PC. It’s like you talked mainly about the MAC. I was stuck in the 3rd step b/c i never have Ultra or Hex edit in my computer. So I don’t know what version to install and stuff. Can you advise me from here. I use window XP PC Thanks

    Reply

  583. It worked like a charm! Thanks!

    Reply

  584. to the author… Your my hero! Luvin this stuff, just luving it.

    Reply

  585. Great tutorial thanks!

    Reply

  586. I’ve tried this hack about four times now and the hex editing part never works out. How ever, I just copied the XML file and “iTunes Library” file off my iMac and pasted it to my PC. After adding the extension “.itl” on the “iTunes Library” file, i could sync with both computers.

    iPhone 2G 3.1.2
    iMac OS X 10.6
    PC Windows XP SP3
    iTunes 9.0.2.25

    Reply

  587. You are a star – thank you

    Reply

  588. This did it! Not a very difficult hack, really. THANK YOU so much.

    Reply

  589. Unfortunately this doesn’t work with the latest iTunes. I cannot find the ID in the .itl library.

    Reply

  590. Just wanted to post that this hack WORKS!
    I’m on a PC, using the latest itunes with a 3GS phone. I can now copy and edit songs, ringtones, etc.. Thanks ALOT for sharing this trick!

    Reply

  591. HI,
    I did the step 2 partially because I am not able to find the second file (the binary one),and because I have already paste the new ID I will not be able to find and replace it. Stupid me!! What I can do to find the old ID?

    Reply

  592. Thanks for VERY helpful information. I’m almost done, but i’m not sure wich HEX-editor to use. What do you recommend?

    Reply

  593. [...] How to sync an iPhone with two (or more) Computers :: Shiny Things [...]

    Reply

  594. Thank you even if its seems somehow difficult to be done..
    hosting

    Reply

  595. Just for everyones info…. the only hex editor that will see the string correctly is ultraedit. I tried every free hex editor that I could find, and none of the worked. I used the ultraedit trial and I was able to find the string right away.

    Thanks for this info, I needed it.

    Reply

  596. Fantastic! This worked great. Exactly what I have been looking for. Thank you for figuring this out an posting it online.

    Reply

  597. Whoever you are that wrote this post…I love you

    Reply

  598. Brilliant. Thanks for posting this solution

    Reply

  599. Just tried this now (7th December, 2009) with a new iPhone 3GS. Works perfectly! Thanks very much for the help!

    Reply

  600. Thanks for a great hack, works fine with music but cat drag anbd drop my ringtones and when I tick the ‘sync ringtone’ box in the ringtone tab, it warns that if I do so, all music will be deleted!
    This is from the ‘original’ paired computer – my laptop – and when I dis the hack on my desktop (which has the music on it) I got all te music but it deleted the ringtone!
    It seems I can share music but not ringtones – I’ll live with it!

    Reply

  601. Thanks for solving such an outrageous irritation. I actually bought a Nano so I could transfer songs from more than one machine- wish I saw your fix first!
    I downloaded UltraEdit & successfully edited the .xml file, but I can’t find/replace the string in the .itl file. When I search for the exising string, it is not found. I’m sure I’m doing something dumb- any suggestions are appreciated. What format should it be opened in?

    Reply

  602. I got through all the steps will I got to the HexEdit. When I opened the HexEdit there was not an option to Find and Replace. Only Find. So if anyone knows how to remedy this situation to finish this process let me know.

    alisacollard@sbcglobal.net

    Reply

  603. You (as a few people already mentionned) are a genius. Thank you!

    Reply

  604. what you post is a very helpful information but the hexedit link is not working I mean link itself is working but not the software. somehow it says it doesn;t support this envrmnt. and i tried the other free hexeditors unfortunately they are not offering “find and replace” option under their Edit menu.
    Any suggestion??
    thx

    Reply

  605. Thanks So much!!!!

    Reply

  606. Worked perfectly, this is on a brand new iPhone 3GS with 3.1.2.

    I used WinVI to edit the file, in HEX mode. Remember to turn off “Insert” and just overtype the hex characters and save.

    Took 2 mins. In fact, took me longer to post this message saying how easy it was.

    Reply

  607. I was just wondering if this hack is possible if computer 1 = PC and computer 2 = Mac? Does it matter that it’s not a PC to PC or a Mac to Mac?

    Thanks

    Reply

  608. it worked fine for music and n video but not working for APPlication please help me

    Reply

  609. I find this set of instructions hard to follow.
    I am running Windows 2003 I cannot find the files you refer to. Please help.

    Reply

  610. There are different tools that makes this process death easy. I would try to the iTunesDBCloner posted somewhere in this page.

    Reply

  611. I have followed these steps perfectly and still I can’t manually manage my iphone. What do I do???

    Reply

  612. This does not work.

    Reply

  613. Thank you for putting this on your site. Your article is very enjoyable. What is your favorite movie? I really enjoyed Sin, if you haven’t seen it yet you should. I think you would like it. Thanks again for a very educational site! Visit my site if you’d like to read more. Regards!

    Reply

  614. Terrific piece of work on all levels. Worked the first time. One machine running Vista, the other XP Pro. Used HxD hex editor. Thanks again

    Reply

  615. Question:
    Will this work if my main imac is running snow leopard and my second older imac is running Tiger?????

    Reply

  616. can’t find the files. pc’s with xpsp3, itunes 9x. ran full system searches. can’d find referenced files.

    Reply

  617. I’m a new user and this was very helpful–thanks. I have another question to which you may (hopefully) have the answer. We have two computers, and I normally use one of them to download iPhone apps. I live in Europe with an expensive data plan, and our wireless is currently down, so rather than download directly to the phone itself, I’ve been synching to the computer to save myself unnecessary data charges. All was fine until I used our second computer to download another application. Both computers are tied to the same iTunes account, but when I started to synch the new application from the second computer, it became clear I was going to lose all the other applications from Computer One.

    The orphaned application was €20 (it’s a French-English dictionary) and I don’t want to pay for it twice, nor do I want to overwrite everything else (including a few other expensive dictionaries).

    Any suggestions as to how to merge the two, particularly that I’ve used the same iTunes account for everything? I have to say I was a bit surprised that iTunes seemed more interested in what was on my computer than what was in my iTunes account.

    Reply

  618. Lori,
    you should be able to re-download any purchased or free program at no charge. You will have to select it as if you are going to purchase it but it will come up with a message saying you have already purchased it, would you like to re download/install.
    Hope this helps.

    Reply

  619. Worked like a charm! i would recommend HexEDit instead of UltraEdit – i’m in no way a smart man and UE confused the heck out of me.

    Thanks again.

    Reply

  620. Thanks very much for this clear explanation which saved my having to remove and put back all the music on my iPhone. For some reason, after having moved my iTunes library, my phone thought it was on another computer. Luckily I had a backup of the file with that magic number in it…

    Just a couple of comments. On a Mac, you’ll need HexEdit for OS X. Sounds stupid, but I downloaded what seemed to be the right program (it included lots of fles and folders), and it didn’t work. If you’re on a Mac, search foe HexEdit on versiontracker.com.

    Secondly, the ‘replace all’ option didn’t work for me, whereas, ‘replace’ did. Just in case…

    Reply

  621. I’m running Vista and XP. On the XP I cannot find the iTunes Music Library.itl where is it???

    Reply

  622. Mil gracias, me funcionó de maravilla!

    Reply

  623. Still get the iPhone synched with another library error. Music still greyed out… :(
    3G, iTunes 9.0.2.25

    Reply

  624. I have just carried out this procedure using wordpad for the .xml file and HxD hex editor for the .itl file on Itunes 9.0.2.25 running on Windows XP.

    tried several other free hex editors but none of them found the correct hex string until i tried HxD – worked first time then!

    Thanks to everyone who put their information on here as I was starting to lose my temper with this little problem!!!

    Reply

  625. I have an iPhone and just bought a new laptop. My old one, that my iPhone was synced with, crashed. I just want to keep all my music, videos and apps on my iPhone. Can’t you load them from your iPhone to your new laptop, so you can keep them. I just want to add new music & video without erasing my old ones.

    Reply

  626. Thank you for this. Reinstalled my machine and realized I couldn’t sync without erasing what’s on my iPhone. Now I can keep the things on my IPhone! HaluEYAH!

    Reply

  627. I’d like to add my own “Thank you” to the chorus. This is a wonderful tutorial.
    If I may, I would like to recommend Hex Fiend as a Mac hex editor. I downloaded Hex Editor but (unfortunately) am not familiar with compiling (been years since I have done so) and gave up quickly. Hex Fiend doesn’t require it, and did the trick: http://ridiculousfish.com/hexfiend/

    Also I have iTunes 9.0.2 and it worked well, with one hiccup, which was:
    1. Although it’s not a surprise, I had to authorize the “new” iTunes (i.e. the iTunes which had not originally been associated with the iPhone)
    2. This meant that almost all of my iPod Apps decided they needed to be uninstalled – I think it was prompted by the fact that iPod synced automatically (silly me!) _before_ I could Authorize iTunes
    3. I had to – at the end of that sync process – go back and sync the iPhone with the original iTunes computer and re-sync all of my applications to the iPhone (and painstakingly put them back in the order I had previously put them in)
    4. Just to test it, I re-synced the iPhone (i.e. reattached it) to the “new” iTunes and also added a song, and it worked fine. (phew) no more deleting of my apps.

    But yeah, now I’ve got 2 of my precious 5 authorizations in use. Ah well!

    Reply

  628. I was struggling with this ‘fix’ as well but I think I found a few answers.

    My setup: 2 windows systems (1 running XP, 1 running Windows 7 64-bit). iPhone 3G (Hijacked and unlocked, but I guess it also works for non-hijacked iPhones), running version 3.0.1
    iTunes version 9.0.2.25
    Note: since I am only interested in syncing my apps, I did not check if this ‘fix’ also works for music, videos, etc.

    What you need: iTunes version identical on both systems, logged on with same (your!) account.
    Backup your iPhone on your initial system (the one you used to setup your iPhone and iTunes – this is computer 1. The second one you want to sunc with is computer 2).
    I used UltraEdit32 to change my files. You can use another HEX-editor if you like (do NOT use Notepad or similar TEXT editors).

    Make copies of the XML and ITL files!! These are your escape in case this is not working for you!

    I followed the instructions above, but could not find the same ID-code in the *.ITL file on my computer 2. I did find it in the XML file but this was not sufficient… This is also a problem a few others found as well.
    Also: if I changed my XML-file, after starting iTunes again, it changed it back to the previous ID-code.
    This is what I did: Disconnected my iPhone on computer 2, I opened the XML and ITL file with UltraEdit32, I started iTunes, played a radio station (from that moment on the ID-code changed back to his original code = wrong code).
    Closed iTunes again but kept the files open (UltraEdit can ask if it can update the files, since they changed. You can OK that).
    From that moment on, I could find the same ID-code in my XML and in my ITL file.
    I changed them both with the ID-code from my computer 1. Saved both files.

    Now here comes an important one; if you do not want to loose your applications, already installed on your iPhone: CANCEL the sync immediately after you connect your iPhone (often automatically turned on).
    Now BACKUP you iPhone via iTunes (right mouse-click in iTunes, on your iPhone).
    Next TRANSFER PURCHASES in iTunes (also under the right mouseclick). This is why iTunes on both computers need to be exactly the same and logged on with the same account!. Your apps from your iPhone are transferred to your computer 2.

    From now on you can sync your apps on both computers.

    I hope this info can help out others.
    Please remember: altering your computer or iPhone is on your own risk. I cannot take any responsibility whatsoever.

    Have a great 2010 !!

    Reply

  629. How would I sync my iphone to a new pc if I do not have my old pc that I originally synced with.

    Reply

  630. How would I sync my iphone to a new pc if I do not have my old pc that I originally synced with?

    Reply

  631. Quite possibly the most useful tip on the internet.

    Reply

  632. OK… I followed the instructions and did not have a problem getting the library IDs in sync. My primary computer is my Mac and my secondary computer is a PC (WinXP). Both are setup with manual sync. So, I do not have any instantaneous syncing to disable. However, I sync all objects on the Mac (Music, Videos, Applications, Ringtones, etc.). And, when I take the phone to the PC, it also shows that I am syncing all objects there, too. And, when I uncheck Applications, Music, etc, I get a notice that it will remove all my objects. Upon testing it, sure enough, all my apps were gone on the iPhone. I had to resync on the Mac to get them back. Also, I have a wireless sync method for PIM data. That is not an issue.

    So, the question I have is how do you tell the Mac to sync all the objects and tell the PC to sync nothing.

    Eventually, I will disable to wireless sync of the contacts and sync the contacts via the PC (Outlook).

    Any insight into how I can disable the sync on the PC while leaving it on the Mac would be most helpful.

    thanx,
    pmo

    Reply

  633. Patrick – if you are getting the message about it removing all the object you haven’t done it properly.
    I would check:
    1) Itunes is not running when you make the changes on the secondery machine
    2) You saved the .itl file after changing it.

    My primary itunes is running on Vista and secondary is OSX 10.6

    Reply

  634. the Hex editor can not find the value of the string that the second computer had before I changed it. I even reinstalled iTunes to make sure I didn’t copy it wrong.

    Reply

  635. Worked flawlessly with iTunes 9.0.2.25 and my iPhone 3G while migrating to a new PC. Thanks a lot!

    Reply

  636. Worked perfectly on the latest version of iTunes!

    Reply

  637. It worked great. Thanks a lot.
    One issue:
    My old laptop is gone and when I’m syncing my iPhone with the new one after following about steps, new iTunes let me trasfer applications but how do I trasfer my iPhone music/ringtones on to the new iTunes library ?

    Any suggestions?

    Reply

  638. Thanks for this great guide man.
    I haven’t tried it out yet, but sure looks like it’s easy to do and will try it tonight.
    One interesting fact is that my iPod works both on my MAC and my work PC without doing any tweaking, but the iPhone doesn’t like that for some reason.

    Reply

  639. Really I have to say this too well done. Even though I had to replace the files a couple of times, that is because I just forgot the original number, it worked like a charm. Thanks very much!!!

    Reply

  640. thanks dudee! you are a genius!

    Reply

  641. Thanks a lot!!!!! Much appreciated.

    Reply

  642. Worked perfectly! Thanks! UltraEdit is great but costs, tried PSPad and has about same functionality as UE.

    Needed to do this after I rebuilt my XP laptop — fortunately I had backed up my docs & settings.

    Reply

  643. To those who have lost their apps trying to SYNC. Reading through the post and one other site I managed to work my iPhine with my work computer (2nd PC).
    First
    To point out that syncing with the second computer will allow you to transfer music from a second PC to your iPhone. If you wish to have your apps and music that you have purchased on your 2nd PC/MAC simply right-click on the iphone icon in the source column of itunes and choose “transfer purchases”. I am doing this as we speak…

    Second
    In order not to loose your apps (I am quoting a previous reply), you have to untick “SYNC APPS”. Click apply and immediately cancel the sync process by slide to cancel on your iPhone screen. You should do the same for photos. Then if you choose the option to manually manage you music and videos, when you click apply you should hopefully sync without loosing your apps.

    One last thing, I tried the step by step in this page and have to say that it works with the above mentioned. If however you don’t want to mess with the files you can do what I have done. Copy your 3 itunes library and 1 itunes music files from PC1 to PC2.

    Hope that helps some of you.

    Reply

  644. Donde me bajo el hex editor????

    Reply

  645. SA-Weeeeeeet!
    worked like a charm, tyvvm

    Reply

  646. i dont seem to get the last part.
    Select “Find and Replace” from the Edit menu. Make sure “Hex” matching is selected (not ASCII). In “Find” enter the ID you took a note of in Part 1. In Replace, enter the ID you copied at the start of Part 2. Choose Replace All, there should be one match.

    Save this file and close it.

    PS:I use a PC, windows 7

    Reply

  647. i dont get the last part
    Select “Find and Replace” from the Edit menu. Make sure “Hex” matching is selected (not ASCII). In “Find” enter the ID you took a note of in Part 1. In Replace, enter the ID you copied at the start of Part 2. Choose Replace All, there should be one match.

    Save this file and close it.

    im using a windows, cant find the itunes music library.itl

    Reply

  648. ur bad maneee. gud work.. thanx maneee

    Reply

  649. Thanks for sharing – it seems to work great – is there a way to transfer the video and music onto the new computer?? THANKS

    Reply

  650. Great!! Thanks a lot for your work!

    cheers

    Reto

    Reply

  651. Thanks, it works just great.

    Reply

  652. I had the same problem where my Apps were deleted when I sync with the new computer. Here is how I fixed it.

    The first thing iTunes does when you sync is backup your library.itl file that is on the iPhone/iPod. So go into the iTunes folder and find the folder named “Previous iTunes Libraries and open it. Rename all the file in there from “.itl” to “.itlbu”. This will prevent iTunes from using one of these files when you sync and force iTunes to create a new backup file using the library that is on your current device.

    Second, make sure all your apps are in the “Mobile Applications” folder in the iTunes folder. In my case I had two “Mobile Applications” folders that did not have the same apps in them. So iTunes would pick one folder and erase any apps that were not in that particular folder from my iPhone.

    Lastly, when you sync you will still be prompted that all existing content on the device will be replaced, but this is not the case. In my case, I was prompted that all data was going to be replaced, but that did not happen. I can now sync with two computers without losing any data on my iPhone. I hope this helps.

    Reply

  653. I followed the directions exactly and it’s not working! any help would be appreciated cuz I’m going crazy! thanks!

    Reply

  654. Does this still work for anyone? I tried it with itunes 9.0.3.15 on Windows 7. It first asks me to sync applications and warns that if I choose “Do not Sync” all existing apps on the phone will be lost.

    When I first opened itunes after the install, it also asked me to authorize the computer to listen to purchased stuff. How did it know?

    Reply

  655. Hey Andrew. It is amazing reading this and the huge responses to this site.

    We are now using iTunes 9.0.3. Will this still work?

    Reply

  656. Hey Andrew this works like charm! On iTunes 9!

    Although your work is all over the Internet. Good for the guys who quoted you as The Genius who made this happen!

    So like they said, works like a charm! The secret ingredient is to have the latest hex editor to avoid error!

    Good job, Andrew! Thank you!

    Reply

  657. cannot locate I Tunes Music Library.xml on my imac could it be named something else?

    Reply

  658. hey DRE
    its just called iTunes Library if your opening in ultraedit…right above the first one you open with a txt editor…
    any one have any questions just send it to ethan_m_s@hotmail.com…i understand this kind of stuff pretty well.

    Reply

  659. Thanks a lot! It worked for me cross-platform on Mac (original) and PC (New)!

    Reply

  660. sill cannot locate the library on my imac desktop, found it with no problem on the laptop, could it have a different name?

    Reply

  661. Does this work on subsequent versions of iTunes. I have Version 9, and it doesn’t seem to work…?

    Reply

  662. I have a problem. need help..I do not have the other computer where my iphone was sync..I want to transport my music to the Itune on another computer but it tells me that I am sync with another..I do not have the other computer anymore..what do I do?

    thank you

    Reply

  663. Ok…here’s a toughie for ya. I got my phone off ebay; it’s unlocked and jailbroken. When I added media it was with a 3rd party program. I was scared to use iTunes at first.
    Well, it gives me the sync error and I’m afraid my apps (which are library items I assume)would disappear and thus lock me out of my own phone.
    Long story short, I don’t have the original sync information. How do I avoid turning my phone into a brick? What will the “Delete and sync” do?

    ANY help would be VERY appreciated!

    Reply

  664. Hello, and thank you..

    The problem I have is that I do not have the other computer..it was damage..so I can not do this..I just have one computer that gives the message erase sync..
    help please..ivan

    Reply

  665. What if I cant’t access the computer i originally synced with? How can i get everything from my phone to itunes?

    Reply