Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Install Xcode from the App Store = Deleted System

Not entirely positive this is an App Store related issue, but... it's certainly an issue.

Last night, I bought the $4.99 Xcode app from the App Store. Once it was done downloading, I told it to go ahead and install, and... about halfway through it's install I noticed my applications were deleting one by one. Frantically, I shut my system down with a hard shut down. Upon reboot, sure enough, the HD wouldn't reboot.

I reinstalled my system from a Time Machine backup, still wouldn't boot, but I overcame the booting issue by reinstalling OSX over the restored drive.

Once I got everything back up and running, I thought to myself "surely, an App Store download of Xcode couldn't cause such irradic behavior" so with a morbid curiosity (and knowledge that i can restore if need be) I gave it another shot... and sure enough: just like before, about halfway through the Xcode install, my apps and system library files started disappearing. Less panic'd I stayed around as long as I could before doing the hard shut down. Leaving Safari open saw it slowly loose necessary files to run (fonts, images, etc) not that the app itself was around anything anymore anyway.

Truly odd behavior, and it'll keep me from installing Xcode unless there's a real solution to the problem out there. So I put it to you, Apple faithful and forum moderators... thoughts?

Mac Pro (early 2009), Mac OS X (10.6.6)

Posted on Mar 15, 2011 11:01 AM

Reply
64 replies

Mar 25, 2011 3:43 PM in response to D.J. Glisten

Thanks for the heads-up DJ!

I've contacted Apple's phone support, they said that they couldn't do anything because XCode falls under the Developer umbrella, and is not under the standard support. I've reported it to Developer support as well: http://developer.apple.com/contact/

I've also tried the AppStore support site, but haven't heard anything back. I figure the more people report the issue, the more likely they are going to treat it as the major issue that it is.

Message was edited by: Frustrated Dylan

Mar 26, 2011 7:41 AM in response to D.J. Glisten

So same thing happened to me. Also on an iMac, which took some recovering with help from the genius Bar as I could nor get to my hard disk after the fairly complete deletion of files during the install

So I grabbed the old macbook (2.4 Intel Core 2 Duo 2GB) and recapitulated the problem wiping out the operating system, this time could recover the computer using a USB on which I had installed a bootable version of OS X (neat trick learned from http://macs.about.com/od/diyguidesprojects/ss/usbflash.htm) that enabled me to fire up disk utilities which saw the macbook HD

So have 2 clean OS X 10.6 installs on the computers and wondering about my next move

Mar 27, 2011 7:15 AM in response to D.J. Glisten

I downloaded and reinstalled on the Macbook (10.6.7) version 4.01 of Xcode. It installed fine and runs. This was a clean system install, from disk updated through software update but no other software installed not even iLife. Only what comes with the OS X direct install.

Positive about my experience on the Macbook, went ahead and repeated the process on the iMac (10.6.6) and trashed the system again and cannot recover, off the Genius Bar again, The obvious differences are 10.6.7 vs 10.6.6 and also the iMac was full of other software, documents ....

Next move is to try and install on a clean system on the iMac before recovering all the other software, will do this at the Genius Bar.

Mar 28, 2011 8:45 AM in response to D.J. Glisten

I was able to resolve this issue, but I can't say for certain which of the 2 things I did differently solved the issue.

1. Replaced the hardware: Because of the disk errors I was getting in the disk utility after the drive was deleted, I took the MacBook Pro back to the Apple Store and had it replaced.

2. I downloaded and installed XCode 4 from the developer site (costs $100 if you're not already a developer).

I suspect that the issue was solved by installing the developer site XCode download because it's a .pkg file, rather than an .app file. I think because the app is installed in the Applications directory, that it had different privileges and path than the .pkg install.

Mar 30, 2011 8:52 PM in response to mac llama

Wow.... that's incredible. That's the fear I had when I would to the hard shut downs upon noticing files disappearing - specifically that it would spread to other drives and start destroying backups and (as a professional photographer) peoples wedding photos on my photography drives. This is a scary bug.

Also, I've been busy (out there shooting more of those client weddings this past weekend) but I've been keeping up... I noticed someone mention they didn't think it happened on 10.6.7 even though it had happened to me earlier on 10.6.7... so that's out, sadly. It didn't get fixed in the latest version of OS X. Promise.

A later post found that the problem doesn't reoccur when downloading and installing Xcode from the Developer site. Something that makes sense if the installer is different from what the App Store provides (and it seems it is).

So it seems isolated to the App Store version of Xcode. I've had a nagging curiosity to see what would happen if I were to create a fresh, new user account and install it on that. But I really just don't feel like taking the chance of having to restore from backup again (particularly after hearing this latest horror story from mac llama). Yeesh.

Apr 1, 2011 4:15 AM in response to D.J. Glisten

I've had exactly the same problem, twice!

The first time it happened, I thought it was a hard drive failure, so did Apple Care and the drive was swapped out for a new one. I got it back, restored from my back up and everything was fine. Went to reinstall Xcode4, same thing happened, icons and apps disappeared, I thought this was the 2nd drive to fail. Apple Care took this very seriously, sent it for a priority repair, this time they were able to reinstall the OS, said the user data was gone, but everything checked out fine. Engineer thought it was a software issue, I mentioned Xcode4, he hadn't heard anything about it.

Machine came back, restored from Time Machine via Migration Assistant again. When it finished, had a number "1" added to the name of my Home Folder and loads of permissions issues, iDisk, system folders, iPhoto, all needed sorting.

Possibly a side issue, but couldn't boot from a commercially purchased Install DVD. DVD drive could read it, I could run access everything while booted up normally, system could see it was a bootable disk, but when I tried to boot from it (every possible way), the DVD would spin a bit and then stop and I would be stuck on the Apple Logo boot screen.

Spent nearly an hour on the phone with Apple Care, guy was patient and helpful, but couldn't repair permissions or boot from the DVD, even tried cloning the DVD to a flash drive. System saw it was bootable, even in Start Up Disk System Prefs, but couldn't get it to boot. Apple guy thought it might be a problem with my DVD copy, corrupted data or something, which would prevent the original DVD and cloned flash drive from working. He's sending me a replacement copy, which will take a week to arrive. He may be right because I can read other DVDs and can even read the install DVD to a point, just can't boot off it. Will try new disk, if it doesn't work, could be trip 3 to the repair shop.

Still needed to repair permissions while boot volume wasn't mounted, so spent 4 hours cloning my drive to an external HD with SuperDuper. It worked, was able to boot from it and repair the remaining permissions that needed fixing. Rebooted from the internal drive and all is good.

Once I get the DVD issue diagnosed, I will phone Apple Care again, my case is still open. Will point out this thread and make the impress upon them as strongly as possible that I believe all of my issues are down to Xcode 4, they have paid for 2 expensive repairs (including courier collection and delivery) that would not have been required if the Xcode 4 installation didn't kill my iMac.

I've spent nearly 3 weeks dealing with this, while not having my iMac. I am still very upset about it. Commiserations to anyone who has had to deal with this very annoying, depressing problem.

Apr 7, 2011 4:36 PM in response to D.J. Glisten

I've had this happen twice, once with Xcode 4.0 and once with 4.0.1

Both times, it got about 50% through the install (download went fine) when it gave an error message about deleting files in the application support folder in Library (Steam was involved in the second case). I told it not to delete the files, and then it hung. Left for 12+ hours and it was frozen, force quit wouldn't work.

Had to restart, and it killed the system folder (question mark on start up, drive listed as empty once I booted). Booted from Snow Leopard disk and tried to reinstall via Time Machine. 2 attempts, both failed (one an hour before the install started, the other 6 hours). Had to reboot from clone (3 weeks old) made with Superduper! and then use Time Machine to restore the User directories. Fortunately worked okay.

Next attempt with 4.0.1 I'd learned my lesson and I made a fresh bootable clone with Superduper straight before the install. It locked up the same and I reinstalled from the clone.

Wondering how I get this (MAS sourced) app installed.

Cheers,

Dom

Apr 8, 2011 10:56 AM in response to D.J. Glisten

Same problem happened here. System up to date, new Xcode install via App Store. Froze half way through, had to reboot, which resulted in flashing question mark.

Restored system via Time Machine (which actually worked quite nicely) - However, App Store no longer launches; just bounces in the dock for a few seconds, but that's it - I've tried the various possible fixes (fsck, cache and prefs, permissions, etc) but nothing has worked.

Very frustrating! From reading this thread, it looks like I'm almost lucky that the App Store isn't launching, because I would have tried Xcode again, to another system delete!

Apr 8, 2011 2:08 PM in response to D.J. Glisten

Same thing here, I downloaded Xcode through the app Store.

I connected my Macbook Pro to an iMac via Firewire and I am now backing up my files. All applications seem to be gone and I have no Backup so I guess I'm screwed.

My user folder seems to be fine, fortunately. Is that is? Do I just reinstall OS X and forget about this experience? I just wanted to self learn some coding but this is just insane.

Install Xcode from the App Store = Deleted System

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.