Unable to install Xcode on Mac OS X Lion (10.7) [duplicate] - macos

I am trying to install Xcode 4.1 GM on my Lion mac but it's not working. When it is almost finished, I get the popup to quit iTunes even though it is already quit. So the only option I have is to quit iTunes helper or alert in activity monitor, then it finishes the install. However then Xcode crashes on launch. Any ideas?

You can go into Activity Monitor and Quit the iTunes helper. That will also get Xcode to finish.

Looks like you've solved the install problem. It's not a solution per se, but setting Xcode to run in 32-bit mode fixed the crashing problem for me.
It's too early to say what the trade-off is (if any), but whatever it is, it's bound to be better than not being able to use it at all.
On a side note: please accept Phil's answer since he gave the correct solution to your original problem. C:

if you boot into single user mode (Press S when starting up), the installation works as it should. Xcode will then function without switching it to 32-bit mode.

Open "Activity Monitor" (press Command+Space to bring up spotlight, or find it in Applications.)
Sort by Process Name and find the process called "iTunesHelper".
From the "View" menu choose "Quit Process".
Then click on the "Force Quit" button. Xcode installation should continue now.

Try to use the xCode through the Finder after you get this problem. It happened to me, but I can still run the xCode.
I think it's something to do with your version of itunes is more updated than your Mac Os version.

Related

I updated Xcode by hand -- App Store keeps trying at night

TL;DR: It appears that Xcode now auto-updates overnight if your Mac is connected to power. I did a manual install, but the (stalled) auto-update still tries overnight. How do I kill this zombie? (Yes, I can turn off auto-update in App Store, but I don't want to. And anyway, the problem would persist when/if I turned it back on.)
Longer: The following steps happened
Yesterday morning my Mac had the error dialog (paraphrasing here) "Could not update, you must quit Xcode"
I quit Xcode
Clicked "Update" in App Store app
Update stalled at 90%, App Store said "Pending"
(Simulator was still running; could have been the problem)
This stalling is a common problem, dealt with in many posts here, notably
Xcode update stuck after updating macOS
Xcode update stuck on "update"
I went to https://developer.apple.com/download/more/ and got and
installed the update by hand
That wasn't the end of my problems; see
Broken xib with xcode 10.3
This morning, I was welcomed with the same "Could not update, you
must quit Xcode" error dialog.
The App Store app still says "Pending" for this update. Apparently you used to be able to press the Option or Control-Option keys to reveal a "Cancel" button, but no longer.
Q: How do I cancel this pending update, short of de-installing current Xcode and re-starting the App Store process? (See How to Completely Uninstall Xcode and Clear All Settings)
Note: FWIW the file
~/Library/Application Support/App Store/updatejournal.plist seems to say my latest version is 9.2.
Note: another suggestion at https://apple.stackexchange.com/questions/345910/how-to-delete-partially-downloaded-updates-in-high-sierra is to delete all contents of $TMPDIR../C/com.apple.appstore/ but that seems drastic.
Note: In Launchpad, the Xcode icon has a blue dot next to it. Could my solution really be as simple as deleting the Xcode icon? Plenty of similar suggestions all over the web...
This seemed to do the trick: sudo softwareupdate --clear-catalog

XCode alert says UPDATING_LOCKED_* on launch

This is on OS X Yosemite. It appears when I try launching Xcode.
There are no updates shown in the App Store and there are no active downloading updates shown, either. Not exactly the pinnacle of Apple's great user experiences.
I hope I don't have to do a clean install…
This happened to me during the installation of iTunes 12.2.1 (1220C173).
I restarted my computer and ended the update, then Xcode opened properly.
Happened to me as well. Restarting the computer fixed it.
Restart fixed mine too - after restarting, it asked me if I wanted to install some required components, and once that was done it worked fine.
Opening Xcode from the App Store fixed this issue for me.
Looking at the screenshot it seems a weird error. I don't think there will be a easy solution for this error. You have to go through the hard way.
Update/Install xcode again. If it didn't then
Update iTunes and launch/download Xcode again. If it didn't then
Update your Mac OS and try the above
P.S: I usually download xcode from here rather than from Appstore( requires Apple ID to login) https://developer.apple.com/downloads/
In my case I attempted to download Xcode 6.4 from the AppStore and got this same message AND the AppStore progress indicator was stuck; I couldn't pause the download because the button was grayed out. I rebooted and restarted the download a few times to no avail. But then I decided to wait and let the thing work itself out, and it did. Aparently there is a bug in the AppStore download for Xcode 6.4 that DOES download it (and it took forever in my slow connection) but does not show a progress bar. When I opened the Activity Monitor's Network tab, there it was!

Xcode 5 on Mountain Lion 10.8.5 won't load

Since I installed the Xcode 5 from the App Store I can't start Xcode.
I click on the Xcode icon, then icon bounce 1 time then nothing.
The program doesn't respond...
I tried to uninstall and reinstall Xcode but I got the same problem.
I think the best way is to completely uninstall XCode and its accompanying utilities.
You can follow this link for that.
I am plagued by this problem. Ever since I updated to XCode 5 I have had nothing but trouble. When I open it it does nothing but it does say Application Not Responding when you right-click the icon in the tray.
Once I walked away and hours later when I came back it was open. So I tried it again and waited. around 30 minutes later, it opened. I've figured out that if you wait long enough, eventually it opens.
I know this is only a temporary, partial solution, but it may be all you have until the release Mavericks. I have read in searching for a solution that XCode 5 works in 10.9 but developers struggle using it on 10.8.5 <----- specifically 5!
I just installed the 10.8.5 supplemental 1.0 update and it didn't change anything for me.
Try to open the program and see if letting it sit for a while maybe even overnight, and see if it opens like mine. If so, maybe someone can help with that extra information.
Well i have the exact same problem that you are facing. This is how you can solve it:
First of all just uninstall the current version of Xcode from your Mac completely. You can delete it from the Applications. After that you will still see the Xcode icon in the LaunchPad and i don't know why. You have to delete it from the LaunchPad too. Just by clicking and holding until the cross button appears and then press the cross button to delete.
Once this is done, don't download it from the App Store. Instead download from a direct link. Go to this LINK and find the Xcode and download the DMG file. Then you can install it and you will have no problem.
You can either waste your time troubleshooting the problem or you can just do what i told you to save some time. The choice is yours!
Hope this helps!

Install button disabled while installing application

I am using PackageMaker 3.0.4 & Mac OS Snow Leopard.
Successfully make setup by PackageMaker for Cocoa Application.
When i try to install application, At Installation type step, install button remain disabled.
I have set User sees to "Easy Install only" and Installation Destination to "System Volume".
So, how to enable the button so i can move to next step & install application.
You mean they're stuck at the screen that says “Install for all users”, right?
They need to click on that.
Yes, even though it's the only option.
Yes, even though it looks like it's already selected.
It's a bug in Installer. The only reason I haven't filed it with Apple is because I have no idea how to make it happen.
Yeah, I've seen this bug too. I initially thought it was due to 10.6.6, but it seems to happen on 10.6.7 too.
Lame.

Can't run Instruments from Xcode

I recently upgraded to Snow Leopard and since then I am having difficulty running Instrument to instrument my app from Xcode. The Record button would be grayed out, and nothing happens. There is no message in Xcode's console telling me what's wrong either. I used to be able to attach it to process or launch the process from Instruments as well, all these are no longer working.
Any idea what's causing this?
I had the same issue! I could only use Instruments on my iPhone but not on iPad or iPad2!
Whenever I started instruments with Xcode 4 it would just beep and the record button would be disabled..
I solved this issue by in XCode going to >Targets>Edit Scheme>Profile "yourAppName" and changing the Build Configuration from Release to Debug.
Then try to profile again Product>Profile
If you get the beep again..
You will see that it says "CHOOSE TARGET" next to the record button open the drop down >Choose Target> "yourAppName" then hit record.
This solved it for me and was finally able to run instruments again!
I know this post is old but i hope it helps someone.
I had this issue in Xcode 7. It turned out that, somehow, in the Profile section of my scheme settings, the Executable field had been cleared:
I set the Executable field to my target name and the menu enabled again.
I was unable to get instruments to work with my iPhone (it had previously worked). The behaviour I saw was that xcode would say "finished running - Profiling [app name]" before the instruments window was even shown (the choose instrument window).
I worked around this by going to product->scheme->edit scheme, select profile [app name] and select an instrument (i.e. Allocations) under the instrument drop down (instead of "ask on launch").
Once I did this, selecting Product->profile worked for me and the instruments was running.
I wanted the zombie instrument which strangely isn't in the xcode dropdown, I was able to use this by simply using file->new in instruments (while the allocations instrument was still connected and running) and I could then choose the zombies instrument and the record button wasn't greyed out!
All of this was with iOS 7.0.3 and xcode 5.0.1.
I hope this helps at least one other person to stop ripping their hair out, but knowing xcode I somehow doubt it!
I had the same problem after reinstalling Snow Leopard last week. I moved my /Developer folder to /Developer_old and re-ran the Xcode installer pkg, and now have Instruments back.
HTH
The problem is instrument needs a gateway to your app and simply pointing to it doesn't do it. The Instrument's workflow is as such: You need to profile it from Xcode first.
I highly recommend seeing Apple's own links shared in this answer. They are amazingly good and simple.
Apple's documentation says
If Instruments has access to information about your app’s source code,
a leak is reported as a class name. Otherwise, a leak is reported as a
memory address, such as Malloc-size. To ensure that Instruments has
access to information about your code, initiate profiling from Xcode
(see Profile from Xcode) or configure a symbol mappings file (see Map
Data to Source Code).
what worked for me was
running the app on Simulator
going back to Xcode's Debug Navigator (CMD+7)
selecting CPU/Memory
clicking Profile in Instruments
Note that if you have multiple targets, it is very likely that you need indeed to tell Xcode which one you want to profile. Use the edit targets scheme above
I've noticed that if I go to File->Record options, and press OK, the record button suddenly is enabled.
Make sure all of your instruments support recording modes. When I upgraded from Xcode6 to Xcode7, one of my instruments was marked as "This instrument's supported recording modes are none". When I deleted this specific instrument, the recording button becomed enabled.
As pointed out in Apple's discussion forum, restarting your machine works. It works for me.

Resources