Skip navigation

[lion] XCode 4.1 doesn't install with lion

26622 Views 97 Replies Latest reply: Apr 18, 2012 12:05 PM by baltwo RSS
  • BubbaMc Calculating status...
    Currently Being Moderated
    Jul 28, 2011 5:43 AM (in response to jimweast)

    Same problem here, nothing has fixed it.

     

    Hope there's an update soon!

  • michael.dev Calculating status...
    Currently Being Moderated
    Jul 28, 2011 9:07 AM (in response to jimweast)

    Intro:

    - I have MacBook Pro from the end of 2009

    - I had Leopard, upgraded to Snow Leopard and yesterday upgraded to Lion

    - All this time I had XCode installed in its latest release version

    - Today I have downloaded the Lion version of XCode (4.1) from the AppStore

     

    The problems:

    - In the begining I had the same problem as you write here (couldn't instal and got a message to look in the log file)

    - After that I have installed and used the MacKeeper (there are many similar solutions for Mac cleaning and repairing)

    - After that repair I succeeded to start installing the XCode 4.1

    - In the first attempt after about 2 hours of installation the installer told me that I have to close iTunes in order to proceed, but the iTunes was closed (I tried to open and close the iTunes with no luck)

    - After that I have force-closed the installer, restarted the Mac and started the second attempt (without opening anything accept the installer)

    - After additional couple of hours I've noticed that the progress doesn't move (at about 80%)

     

    Will it ever work?

  • michael.dev Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jul 28, 2011 9:35 AM (in response to michael.dev)

    Appears that the XCode was installed eventually.

    It looks like the instalation is stuck on about 80%, but I can open the XCode and work with no problem.

  • samirsam Calculating status...
    Currently Being Moderated
    Jul 28, 2011 1:21 PM (in response to jimweast)

    I had the same problem...

    But we can solve doing this:

     

    - Open the "Activity Monitor" (its located in Applications>Utilities)

    - Look for "iTunesHelper" in the process list

    - Quit the process (the stop symbol located in the left corner)

  • BubbaMc Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jul 29, 2011 2:58 AM (in response to samirsam)

    ItunesHelper is definitely not running. Install still fails.

  • trashy66 Calculating status...
    Currently Being Moderated
    Jul 29, 2011 5:54 AM (in response to jimweast)

    Even though I've been getting the same install error, Xcode seems to have installed itself ok.  Have you looked in the Developer folder in Launchpad?  I have Dashcode, Instruments, Quartz Composer and Xcode.

  • Kazzywazzy Calculating status...
    Currently Being Moderated
    Jul 29, 2011 9:36 AM (in response to jimweast)

    I just installed Xcode from the App Store on a new MacBook Air (Mid-2011) running Lion that my friend got a week ago.  It installed just fine.  Downloaded, clicked Install Xcode, and it ran as soon as it was finished installing.  I would say if there is any way you can completely uninstall Xcode, as in clearing it out of caches and other areas, then it might work.  If you do a clean install of Snow Leopard and then install Lion, I think it will work without fail.

  • samirsam Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jul 29, 2011 11:58 AM (in response to jimweast)

    In my case, I did a clean install of lion, download the xcode from appStore, search and install system updates (including iTunes) and after that, i tryed to install and the installer told me that I have to close iTunes in order to proceed. I just reboot my system kill the iTunesHelper process on the monitor activies before run the installer again and it works..

  • l.baum Calculating status...
    Currently Being Moderated
    Jul 31, 2011 10:52 AM (in response to l.baum)

    ok guys, so I've fixed the issue for me.

     

    Small recap: the XCode package downloaded from the AppStore wouldn't install on my machine. I have an absolutely pristine OS 10.7 Lion installed, so any software incompatibility or configuration problem can be ruled out. The problem manifested as "An error occurred while extracting files from the package DeveloperTools.pkg" ... (so to read in /var/log/install.log). Several re-installs of the OS and re-downloads of XCode did not help. (However, it was sometimes a different package that caused the error).

     

    The cause: the fact that in my different downloaded XCode installers, different packages caused errors made me think that there are problems in the AppStore (or its caching infrastructure), resulting in corrupt XCode packages. Luckily, over time, the caching servers from the AppStore return different XCode packages... some seem to be perfectly okay (as people report that they could install XCode without any problems), others are corrupt.

     

    The solution: I took several different (corrupt) XCode packages and combined them into one "clean" package. Here is how:

    1. run the XCode installer

    2. check /var/log/install.log, which package made the installer abort

    3. open the XCode installer package (in Finder, right-click, the choose "show package contents"), navigate to Contents/Resources/Packages

    4. remove the corrupt package from that folder

    5. take another downloaded XCode installer package, open it in the same way as in step 3

    6. copy the corresponding package from there to the Contents/Resources/Packages folder in your original Installer -- and keep your fingers crossed, that this copied package is not corrupt

    7. run the XCode installer again -- if you're lucky, the package identified in step 2 will run fine

    8. if the installation aborts at another package, go back to step 2

     

    I had to exchange 4 or 5 packages, but then I finally ended up with having a working XCode installer.

  • balk Calculating status...
    Currently Being Moderated
    Aug 2, 2011 8:38 AM (in response to jimweast)

    Add me to the list...

     

    Aug  2 06:40:44 sanders-macbook _securityagent[1461]: Running Install Scripts . . .

    Aug  2 06:40:44 sanders-macbook _securityagent[1463]: Begin script: AlertAll.sh

    Aug  2 06:40:44 sanders-macbook installd[1200]: ./preinstall: Guest is not in the sudoers file.  This incident will be reported.

    Aug  2 06:40:44 sanders-macbook _securityagent[1469]: End script: AlertAll.sh

    Aug  2 06:40:44 sanders-macbook _securityagent[1470]: Begin script: preflight

    Aug  2 06:40:44 sanders-macbook _securityagent[1473]: End script: preflight

    Aug  2 06:40:44 sanders-macbook _securityagent[1474]: Begin script: writelocation

    Aug  2 06:40:44 sanders-macbook _securityagent[1477]: End script: writelocation

    Aug  2 06:40:44 sanders-macbook _securityagent[1478]: Begin script: zzzcleanup

    Aug  2 06:40:44 sanders-macbook _securityagent[1482]: End script: zzzcleanup

    Aug  2 06:40:44 sanders-macbook _securityagent[1483]: 4 Install Scripts run.

    Aug  2 06:42:40 sanders-macbook installd[1200]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “DeveloperTools.pkg”." UserInfo=0x7fb194971e80 {NSFilePath=./preinstall, NSURL=file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Packages/DeveloperTools.pkg, PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo, NSLocalizedDescription=An error occurred while running scripts from the package “DeveloperTools.pkg”.} {

            NSFilePath = "./preinstall";

            NSLocalizedDescription = "An error occurred while running scripts from the package \U201cDeveloperTools.pkg\U201d.";

            NSURL = "file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Packages/DeveloperTools.pkg";

            PKInstallPackageIdentifier = "com.apple.pkg.DeveloperToolsLeo";

        }

    Aug  2 06:42:40 sanders-macbook installer[1440]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “DeveloperTools.pkg”." UserInfo=0x7faf016de2d0 {NSFilePath=./preinstall, NSURL=file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Packages/DeveloperTools.pkg, PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo, NSLocalizedDescription=An error occurred while running scripts from the package “DeveloperTools.pkg”.}

    Aug  2 06:42:41 sanders-macbook installer[1440]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

     

    Xcode freshly downloaded from App store on a fresh Lion installation (not an upgrade). I even redownloaded the installer: same error...

    MacBook, Mac OS X (10.7)
  • balk Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 2, 2011 1:45 PM (in response to jimweast)

    I would love to, but it seems to fail on the same package for the third time now so there is not much to exchange :-(

    I find it strange that this can happen, if it indeed is file corruption during transfer. For one, it should not happen; a corrupt Lion installer for instance could result in strange results. Furthermore, I don't think the corruption takes place between the App store and the user (me) because too many people see the installation fail at the same package. I had it fail 3x at the same point. Too much of a coincidence...

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.