Unable to update to Xcode 8 - xcode

I would like to update to Xcode 8, but when I start the App Store it just shows me an Open button, but my existing Version is 7.3.1
The requirements should be El Capitan 10.11.5 - I have 10.11.6 installed.
Why is there no Update button?

Check if you have multiple installations of Xcode on your system. The App Store often gets confused and loads one you're not considering, such as the version on your back up drive. It's possible it has updated a different installation than the one it launches as well.
Executing the following command in a terminal window should list all installations of Xcode the App Store may find.
mdfind "kMDItemCFBundleIdentifier == 'com.apple.dt.Xcode'"
When you have Xcode open (from hitting Open in the store), right click the Xcode icon on your dock, select Options, and Show in Finder. Does the installation it shows match up with the one you expected it to launch?
If you specifically open each Xcode installation the mdfind command found, are any of them Xcode 8?
You can control which installation of Xcode the App Store will update. Check each of the app folders, and look for a Contents/_MASReceipt folder. Ensure the installation you want to update has that (and a receipt file inside that), and delete the _MASReceipt folder for all of the other versions.
Now the App Store app should update the correct installation for you.

All I had to do was restart my mac. Then, went to the App Store and saw "Update" instead of "Open".

Related

xcode is not opening after downgrade from V9 to V8

I'm trying to downgrade from xcode 9 to xcode 8, I have deleted the 9 version already then i realize that version 8 is not opening working.
all what happening that when i click on xcode icon it will show the very first new project screen for less than 1 second and disappear again.
macOS High Sierra
Version 10.13.6
if you have Xcode pops up a window with a list of most recent projects, but then switch off very fast. that mean you have every thing fine and all you need is to go to any txt file in your computer (file.txt) right click open with and select you Xcode you have installed it Will work fine
At start you need to completely uninstall XCode 9, including derived data, devtools, simulators, etc. Type 'uninstall xcode completely' in Google and you will find many advises of how to do that, including at StackOverflow, e.g.
How to Completely Uninstall Xcode and Clear All Settings
After that you can install XCode 8 by placing XCode.app to Applications folder. Everything else it should do during first run.

Xcode failed to download. Use the Purchases page to try again. Xcode 9.3. MacOS High Sierra

After upgrading MacOS to High Sierra, I tried to update Xcode and get this:
Xcode failed to download. Use the Purchases page to try again
I uninstalled Xcode and try to install again with no success.
I read some tips to solve this but nothing helps...
Remove ~/Library/Cookies/com.apple.appstore.plist (no such file)
Use AppStore Debug menu... (menu never appears with the command to enable it)
defaults write com.apple.appstore ShowDebugMenu -bool true
Remove contents of /private/var/folders///C/com.apple.appstore (folder located, contents removed, nothing changes)
"wiping all caches, cookies amd such like" (how to do that?)
Reset AppStore (uh?)
LogOut, quit, restart Mac (done, no changes)
Quit AppStore process and try again (done, no changes)
Review payment options (done, no changes)
Yes, the drive has enough space
I had the same issue and finally got this working, however I'm not sure exactly which step made it work, so I'm posting all of them.
From https://apple.stackexchange.com/questions/245406/how-to-fix-reset-app-store-app-on-mac-osx-el-capitan:
Delete:
~/Library/Caches/com.apple.appstore
~/Library/Caches/storeaccount
~/Library/Caches/storeassets
~/Library/Caches/storedownload
~/Library/Caches/storeinappd
I didn't have some of those folders, but I did have a couple of extras that looked fishy, so I deleted them too:
~/Library/Caches/storeassetd
~/Library/Caches/storedownloadd
Run sudo softwareupdate --clear-catalog [Note: I did this but I don't think it helped]
From http://osxdaily.com/2016/10/08/mac-app-store-temp-cache-folder/ (paraphrasing):
Quit out of the Mac App Store
Open Terminal and run open $TMPDIR../C/com.apple.appstore/
Hit Return and the com.apple.appstore folder will open in the Finder of Mac OS
Delete the contents of this folder
And finally:
Navigate to ~/Applications in Finder and move Xcode to the Trash [Note: This step was necessary for me, but ymmv]
Reboot
Launch App Store. Search for Xcode. Install it fresh.

Mac application update from dmg

Currently I am developing a MacOSX app. it can be launch at startup. So it has launchitem installed.
However, when I need to update app, I drag app to ./Applications from dmg dialog window to replace current app with updated one.
Click the updated one, then reboot my Mac. Mac still show the previous app. It seems like I don't really replace or overwrite the old app.
Does anyone know how to clean the previous launch item and files when users drag new app from dmg to ./Applications ?
Thanks
The root cause is there is one deprecated app archive folder in user/developer/xcode/archive/, which is first triggered by launchitem. So the update app in applications is not called.

i can't update Xcode

I have a macbook air and I went to the store to install Xcode 7.3 and hit the update App button, and a loading icon appeared but after waiting 30 min time nothing happened. I successfully installed simple recorder from the store but I can't install Xcode.
What can i do?
What are the options to download it?
Try restarting your computer to see if Xcode has installed. This will also refresh the app store, so try downloading it again.
If all else fails:
You should uninstall all current versions of Xcode on your Mac. Do this by dragging each application to the Trash can. Delete your trash.
After, try downloading Xcode again and everything should go through.
You aren't aloud to download old versions of Xcode from the App Store.
I suggest you to download the new XCode 8. It works just fine, even if your update button doesn't seem to work. Need to use the App Store. Also, if you happen to be a React Native developer, you may want to follow this article just after having installed this new XCode version.
If you simply cannot install the latest version, I suggest going to www.developer.apple.com and click the Develop Tab, Xcode, Download, sign in with your apple id, and get an Xcode beta version.
www.developer.apple.com -> Login -> Account -> Downloads
If only spinner is showing, without progress. Open Activity monitor and check if installd is running and using a lot of memory. Try killing that process and update again.

Updating XCODE using different apple account

I have MAC OS 10.7.3. xcode 4.3.1 installed using different apple id as my macbook pro was used previously by my friend. Now when i try to upgrade Xcode to 4.3.2 it asking credentials for my friends account. Unfortunately App store clearly says you can upgrade an app using the account which was used to install the app.
How can i upgrade Xcode using my credentials?
Thanks in advance.
I am sure you would have solved this by now but just posting the solution here that worked for me..
Open Finder and navigate to Applications,
Ctrl+Click the application and choose "Show Package Contents" (Xcode in this case),
Expand the Contents directory and click the _MASReceipt directory to select it, Type Command+Delete to
delete the directory permanently---you will be prompted for your
credentials since this is a protected file.
Quit and restart
AppStore, then find the application. You can update with your new id now without deleting the old version of the app
Hope this helps someone coz it took me a while to figure out !!
Unfortunately had to answer my own question,
Simple Answer: NO, You cannot update xcode installed from another account.
Solution is to delete the existing installation and re-installing from new account.
To delete the existing installation, you need to delete it from Launch pad. You can do this by locating xcode icon in launch pad, long click on the icon till it starts dancing. Then delete it and wait for a while till the xcode.app is deleted from /Application. If you manually delete xcode.app from /Application, App store will continue to think its installed and will not allow you to reinstall in future.
Above solution is assuming you have installed xcode from the mac app store, usually versions later than 4.2. For earlier versions, just deleting /Application/xcode folder should work.
The solution is found:
I had this bug, it's related to Spotlight. The App Store used Spotlight in some way. My fix was to add the entire HD to the "Privacy" tab in the Spotlight System prefs pane, close the prefs and wait 30 seconds, re-open and remove your HD from the Privacy tab. Spolight begins reindexing. Re-opened the App Store and problem was fixed! Posting this here for others who might search later on. Also filed a bug report with Apple.
Source: https://discussions.apple.com/thread/2806858?start=0&tstart=0

Resources