iPhone 3G refuses to transfer purchased apps to iTunes

30,520

Solution 1

Well, it looks like I might finally have fixed it without losing all my settings/data. But I warn you, it isn't pretty and it involved temporarily jailbreaking my phone.

First I jailbroke my phone, I used the blackra1n app, but any jailbreaking technique would work equally well.

Then I used cydia to install the OpenSSH package (again any jailbrake package installed would do).

Then I ssh'd into the phone (username = root, password = alpine).

I cd'd into /private/var/mobile/library/safeharbor and took a copy of the directory listing, so I had a note of which apps I had installed. This directory is where all the data for the apps is stored.

I then deleted the file /var/mobile/Library/Caches/com.apple.mobile.installation.plist, this is the file that keeps details of which apps are install. I then rebooted the phone.

At this point the only apps showing as installed were the Apple supplied apps, cydia and blackra1n.

I then backed up the phone. I then restored to the current firmware and let iTunes restore the backup I had just made.

So now I have a clean phone with no apps installed, but importantly I still have the settings and data for the apps I had installed. I have started reinstalling my apps and they are properly picking up their data and settings that are still there in the safeharbor directory.

I have checked that syncing of apps works and am just keeping my fingers crossed that it stays that way.

The important trick here was deleting the com.apple.mobile.installation.plist file, because then iTunes doesn't know that there were any apps installed and so doesn't start deleting the data/settings when it syncs.

Solution 2

You can eventually attempt to transfer your iPhone apps to your iTunes library via CopyTrans (no jail-breaking needed as far as I know). After the transfer sync your iPhone with iTunes and see whether the issue is now fixed.

Solution 3

I found a better solution for you:

  1. change the name of the file /var/mobile/Library/Caches/com.apple.mobile.installation.plist, this is the file that keeps details of which apps are install like you said. you can just change to com.apple.mobile.installation2.plist.

  2. the iphone will create a new file almost immediately (maybe you need to start a program like the mail, or itunes)...

  3. after it created the new file. delete it and rename the original "com.apple.mobile.installation2.plist" back to its original name (removed the "2")

  4. don't need to even restart the phone, just open some programs and the setting, the sms app and the safari, the phone will get stuck a bit, as if it is loading something and a few minutes later you will see your apps returned and all is working again. Itunes can update as well. and all the programs setting reappear on the setting page.

Solution 4

I had a similar issue on an iPhone 3G, nothing would address it and I didn't feel competent enough to try the jailbreaking option - in the end, I re-downloaded all the apps through iTunes (realtively easy to go screen-by-screen on the iPhone) and then checked the "sync apps" box on the "apps" tab of my iPhone in iTunes.

I pressed "Sync" and then - by accident, I have to admit - cancelled the sync within 10 seconds of it starting and was very surprised to see that the iPhone now looked fully sync'd!

I then pressed "Sync" again and - to my great surprise, the phone started syncing and, after about 30 minutes, was finished, apps and all.

I did NOT loose any app data or any settings!

Clearly, this could have been a fluke but might be worth trying before going down the jailbreak route or anything more drastic.

Share:
30,520
andynormancx
Author by

andynormancx

C#, Javascript, DHTML, MSSQL developer.

Updated on September 17, 2022

Comments

  • andynormancx
    andynormancx almost 2 years

    My iPhone 3G refuses to transfer purchased apps to iTunes. This is causing me major problems with syncing.

    Whenever I attempt to transfer apps from the iPhone to iTunes it goes through the motions, but never actually transfers anything. It displays the various apps in the info area at the top of the screen, but the progress bar never advances.

    In comparison when I sync other iPhones, using the same install of iTunes, the progress bar advances and apps are transferred.

    The same also happens on clean installs of iTunes on other computers, it seems to be my iPhone that is the common factor. I have tried restoring the phone from a backup, which makes no difference.

    This started happening months ago and the phone has since been upgraded to 3.0 and 3.1, but the problem still persists.

    Originally it was just a minor irritation, but I made and attempt to fix it which has made things worse. I deleted all the apps from with iTunes and then did "Transfer purchases" in the hope that it might fix something.

    It didn't fix anything. Also, I cannot now sync at all.

    If I do sync iTunes now does "transferring purchases", fails to transfer and then deletes all the apps (and data) from my iPhone. It also means I can't sync music, podcasts or anything else.

    I can't sync anything else, because I can't temporarily turn off app syncing because then iTunes warns that the apps on the iPhone will be deleted.

    I also tried de-authorising and re-authorising.

    What can I do to get app syncing working again ?

    P.S. I have considered deleting all the apps and reinstalling them one by one, in the hope that it will fix the problem. However I don't really want to embark on doing that for 55+ apps and re-entering login details etc for the apps that need them, especially as I might then find out it didn't solve the problem.

    Update:

    The latest update to iTunes 9 has improved things in one key aspect. If I let a sync run to completion iTunes no longer deletes all the apps from my phone. So I can now sync all my other data, even if I still can't sync my apps.

    Resolved:

    See my answer to the question for how I finally resolved the problem.

    • Will Eddins
      Will Eddins almost 15 years
      Note that some apps can take upwards of 20+ minutes to transfer off the iPhone/iPod Touch with very little progress shown. I'm looking at you DDR. It's one of the many reasons I hate syncing my iPod.
    • andynormancx
      andynormancx almost 15 years
      Maybe, but that isn't what is happening here. It works its way through all 55+ apps saying it is transferring them, while never updating the progress bar or transferring anything.
    • Will Eddins
      Will Eddins almost 15 years
      If, instead of syncing, you right click the iPhone from the left bar and just select Transfer Purchases, does it do the same thing?
    • andynormancx
      andynormancx almost 15 years
      Yes the same thing happens with just a Transfer Purchases.
    • Jeff Atwood
      Jeff Atwood over 14 years
      are there any apps in your app list which are known to cause this problem?
    • andynormancx
      andynormancx over 14 years
      I don't know Jeff, are you aware of a list of apps that cause problems ?
  • andynormancx
    andynormancx over 14 years
    As I said in the question I have already tried that.
  • andynormancx
    andynormancx over 14 years
    Already tried that, several times.
  • andynormancx
    andynormancx over 14 years
    Yes I'm afraid I have already tried that.
  • andynormancx
    andynormancx over 14 years
    Yes I'm sure setting it up as new phone would solve the problem. But there is no "syncing everything across". Yes my contacts could get synced, but I would have to reinstall each and every one of my apps manually and then set them up with their settings and data.
  • andynormancx
    andynormancx over 14 years
    Tracks ? This question isn't about syncing tracks, it is about syncing apps.
  • Antoine L.
    Antoine L. over 14 years
    From my experience with Apple support, the syncing is the same idea. She had me use free Apps to check to make sure the syncing process was working correctly. Worth giving them a call, I used the "call me at this time" feature and was immediately connected to someone who knew exactly how to help.
  • Angela Ferrell
    Angela Ferrell over 14 years
    If you use a lot of jailbroken applications, you can completely back them all up to your RockID through "Rock", another 3rd party Installer. This saved me loads of time when I upgraded from 3.0 to 3.1.2.
  • andynormancx
    andynormancx over 14 years
    Checking/unchecking that was one of the many things I tried and I'm afraid in the case described in the question it didn't help.
  • andynormancx
    andynormancx almost 14 years
    That is great that it fixed the problem for you. Those steps were one of the many many things I tried to fix the problem, but unfortunately didn't work for me.
  • andynormancx
    andynormancx over 13 years
    I can't actually test it, as I fixed my phone many months ago. But yes, that sounds like a good solution.