I have installed macOS Ventura – the latest version of macOS – and I would like to have a stable version of Xcode (e.g. 13.4.1) running. However, it says "The version of Xcode installed on this Mac is not compatible with macOS Ventura."
Is there any way to run Xcode on Ventura?
Xcode 14 is required by macOS Ventura. But if, in case you want to use your old version of Xcode (e.g Xcode 13), you can launch it directly from the finder or from the terminal.
To open in finder navigate to:
Applications Folder > Find Xcode App > Right click on the app and
click on Show Package Contents > Open Contents > Open
MacOS > and launch Xcode.
Or
Run the following command in the terminal:
open /Applications/Xcode.app/Contents/MacOS/Xcode.
Single-run script to fix the problem
As this problem in principle is the same problem as last year, when we wanted to run Xcode 12 on macOS Monterey, it is worth to check last year's question on the same problem. There, I found this great answer in which a script is proposed that only needs to be run once to fix the problem (allowing a regular opening of Xcode 13, e. g. via double click). The script works by changing the build version of the old Xcode 13 to the build version of the new Xcode 14, thereby tricking the OS.
Before running the script, you need to change the OLD_XCODE and NEW_XCODE variables to the correct path.
#!/bin/sh
set -euo pipefail
# Set the paths to your Old/New Xcodes
OLD_XCODE="/Applications/Xcode-13.4.1.app"
NEW_XCODE="/Applications/Xcode-14.1.0.app" # To get build number
# Get New Xcode build number
OLD_XCODE_BUILD=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" ${OLD_XCODE}/Contents/Info.plist)
NEW_XCODE_BUILD=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" ${NEW_XCODE}/Contents/Info.plist)
echo The Old Xcode build version is $OLD_XCODE_BUILD
echo The New Xcode build version is $NEW_XCODE_BUILD
# Change Old Xcode build version to New Xcode
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${NEW_XCODE_BUILD}" ${OLD_XCODE}/Contents/Info.plist
# Open Old Xcode (system will check build version and cache it)
open $OLD_XCODE
# Revert Old's Xcode's build version
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${OLD_XCODE_BUILD}" ${OLD_XCODE}/Contents/Info.plist
For my future self, when I prematurely upgrade my macOS to the latest version.
Since I'm using Xcode just for a building purposes for my Flutter app and I don't really care about Xcode UI, all I needed to do is:
Download the desired xcode version app from https://xcodereleases.com
Unzip the app and rename it to Xcode-<version>.app
Move it to /Applications directory
Run xcode-select command: xcode-select -s /Applications/Xcode-<version>.app
Confirm that the correct Xcode version is selected with xcode-select -p
That's it.
That way I can have multiple Xcode app versions and I can quickly switch between them.
Related
Is possible to change between building by Xcode 10 and Xcode 11 beta?
Maybe by editing by config file etc.?
I have installed both and I need to switch between them.
Is it possible?
If you want to swtich between multiple versions of Xcode, xcode-select should do the job.
Print current version path
xcode-select -p
To switch
xcode-select -s path-to-different-version
I am very new to macOS, I just need a mac with Xcode to compile my app. However, with macOS Sierra, I have a problem with my USB that is not working anymore (i can't plug my ipad pro)
Under OSX El Capitan my usb works great, but now the problem is that app store offer me to download the Xcode 8.3 only that can work only on Sierra (strange they offer you to download something not compatible with your system but doesn't matter, it's apple). so the only way i have is to download manually the Xcode 8.2.1
Now my question, how to install the Xcode_8.2.1.xip file I just downloaded? and in near future, if I need to update xcode (I guess downloading myself a new version), how will I do? Also where the preferences and configurations settings are saved? does these preferences will be lost on each update?
Double-click the xip file and it will extract the Xcode application. Move Xcode to the Applications folder and you are good to go.
The App Store should present the Xcode update once you update to Sierra (macOS 10.12). If it doesn't you can download Xcode directly from the App Store. The preferences are stored in /Users/<username>/Library/Preferences and are not impacted by updating the version of Xcode or OS.
For example, if a XIP file is located on your desktop: open the “Terminal” application found in /Applications/Utilities/ and run the following command:
xip -x ~/Desktop/Xcode_8.2.1.xip
Update: 17 May, 2020: Most easy way
Download the specific Xcode version that you want from here
Add the downloaded Xcode.xip in Applications
Double click on it, it will start expand. It will take some time.
If you have multiple Xcode version like 12.0, 12.1 in Applications rename it accordingly.
Double click on extracted Xcode version and install tools.
To set default Xcode version run this command:
sudo xcode-select -switch /Applications/Xcode_12.1.app
To check default Xcode version in your system use this command:
/usr/bin/xcodebuild -version
Note: Set default xcode step can be skip if you don't have multiple xcode versions in Applications.
Update: 08 Oct, 2020: Easy way
https://ladydebug.com/blog/2019/08/20/xcode-installation-from-xip-file/
https://www.freecodecamp.org/news/how-to-download-and-install-xcode/
Old Ans
Convert the xip to a dmg by opening a terminal to the folder where the xip is placed and run the following commands:
open Xcode_X_Y_Z.xip
mkdir Xcode-tmp
mv Xcode.app Xcode-tmp/Xcode.app
hdiutil create -volname "Xcode" \
-srcfolder Xcode-tmp \
-ov -format UDZO \
Xcode_X.Y.Z.dmg
rm -rf Xcode-tmp
xip -x Xcode_12.4.xip command won't install under /Applications/Utilities
/Applications/Utilities requires sudo permission.
So, you should run like:
sudo xip -x /tmp/Xcode_12.4.xip under /Applications/Utilities path
i have just installed the xcode 6 beta and uninstalled the xcode 5 version simply by moving to trash and empyting it. However whenever i try to use git and other terminal commands mac prompts me to install xcode, but i already have one installed, a beta version. How can i use that beta as a default xcode and use git and other features from it on terminal?
Did you have set them as the same name and same foler as it saved in your computer? If you didn't know, try to open terminal and input these code "xcode-select -print-path". Check the displayed information and look whether it is as same as you setted. If wasn`t the same, change it (Input these code "xcode-select -switch ").
How do I get the command-line build tools installed with the current Xcode/Mac OS X v10.8 (Mountain Lion) or later?
Unlike Xcode there is no installer, it's just a bundle.
It looks like all the command line tools are in the bundle, under Contents/Developer, but none of the appropriate environment variables are set to use them.
Is there a script I can run that will set-up my environment to support building from the command line?
Xcode 5.1 and OSX 10.9. (also works with Xcode 5.1.1 + OSX 10.10)
xcode-select --install worked with version 2333, failed with version 2003. So, try xcode-select --install and if that does not work download as described below.
In early February 2014 xcode-select --install has been reporting that "Can't install the software because it is not currently available from the Software Update server". In late February 2014 the command started only displaying help. The solution is to download directly, see "Separate Download" below.
Xcode 5.0.1 and OSX 10.9
With Xcode 5.0.1 and Mavericks 10.9 the command line tool is no longer available through Xcode. Instead they must be downloaded from the Apple Developer Tools site: https://developer.apple.com/downloads/index.action. This requires signing in with a developer account.
Or via terminal (from the release docs): The Command Line Developer Tools package can be installed on demand using "xcode-select --install” and the installed tools will be automatically updated using Software Update. OS X 10.9 is required for this feature. For earlier versions, continue to use the in-app download in Xcode.
Running the command in terminal produces the following GUI:
Inside Xcode (5.0)
Xcode includes a new "Downloads" preference pane to install optional components such as command line tools, and previous iOS Simulators. To open this pane click the "Xcode" button in the top left of the screen near the Apple logo, then click "Preferences", then click "Downloads".
Xcode 5.0 screenshot:
Xcode 4.x screenshot:
Separate Download
If you do not have Xcode, they are available as a separate download from Apple:
Go to developer.apple.com/downloads/index.action, and sign in with your Apple ID (the download's free). In the pane on the left, search for "command line tools" and choose the package appropriate to your version of OS X. Requires Mac OS X 10.7.3 or later.
If you take a look into "Console" while trying to pull the Command Line Tools, you will find out that there is actually an "unofficial" link to the Mountain Lion Command Line Tools!
So just try:
http://adcdownload.apple.com/ios/ios_simulator__resigned/cltools_mountainliondp2_march12.dmg
Here is my Console log:
01/04/2012 15:41:54.258 Xcode: [MT] DVTDownloadable: Download failed. Downloadable: {
dependencies = (
);
fileSize = 141452226;
identifier = "Xcode.CLTools.10.8";
name = "Command Line Tools";
source = "http://adcdownload.apple.com/ios/ios_simulator__resigned/cltools_mountainliondp2_march12.dmg";
userInfo = {
ActivationPredicate = "$MAC_OS_X_VERSION >= '10.8.0' && $MAC_OS_X_VERSION < '10.9.0'";
InstallPrefix = "/";
InstalledIfAllSHA1SumsMatch = {
"/usr/bin/clang" = 600c35175775a6002452a88f17e00c570cd2e2d0;
};
Summary = "Before installing, note that from within Terminal you can use the XCRUN tool to launch compilers and other tools embedded within the Xcode application. Use the XCODE-SELECT tool to define which version of Xcode is active. Type \"man xcrun\" from within Terminal to find out more.\n\nDownloading this package will install copies of the core command line tools and system headers into system folders, including the LLVM compiler, linker, and build tools.";
"Xcode.SDKs" = (
);
};
version = "1.1.1";
}. Error: Error Domain=NSCocoaErrorDomain Code=3840 "The data couldn’t be read because it has been corrupted." (Encountered unknown ampersand-escape sequence at line 18) UserInfo=0x401bc8e60 {NSDebugDescription=Encountered unknown ampersand-escape sequence at line 18, kCFPropertyListOldStyleParsingError=The data couldn’t be read because it has been corrupted.}
Here are links for Command Line Tools, located at Apple Developer Server. You may need an apple developer (Paid/Premium) account to access them. You can download current (stable and beta) Xcode Tools. (It does not need device verification. Just ensure your macOS and XCode Tool/SDK version while choosing your command line tool)
Xcode 13 RC
Xcode 13 RC
- (Command Line Tool (Xcode 13 RC) - for macOS BigSur +)
Once you've latest command line tool installed in your system, set it from Xcode Menu.
(Xcode Menu Items) Xcode ▶ Preferences ▶ Location ▶ Command Line Tool ▶ Select appropriate command line tool
As of big sur..
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Thanks homebrew maintainers for putting this helpful messaging in brew doctor
The "unofficial" links are also available at
http://developer.apple.com/downloads/
and 403: Forbidden unless logged in with a qualifying developer account. Free accounts have access to everything except prerelease software and full OS installs. In particular, the command-line tools packages that coincide with the release of Xcode 4.4 (the "July 2012" packages) were posted on July 27, for both Lion and Mountain Lion.
Unlike log files, deep-linking Web pages, and the Xcode Preferences window, this page also links to lots of other useful downloads for free and paid developers alike, including everything else that has been unbundled from Xcode (audio tools, accessibility tools, etc.), OS X kernel debug builds, and release versions of Xcode back to 1.0.
Instead of installing the "official" build of the command line tools from Apple, you can also install Kenneth's build from here:
https://github.com/kennethreitz/osx-gcc-installer
It doesn't even require XCode if all you are after is the command line tools.
I recently had to install Xcode command line tools on Mountain Lion over SSH.
Notice: I imagine this process would work identically for any version of Xcode or OSX. Just make sure you get your paths correct.
Here's how I did it...
If you don't have a free Apple developer account, register for one
Login to https://developer.apple.com/downloads
Download the "Command Line Tools for Xcode" appropriate for your version of OSX
For me, that was "Command Line Tools (OS X Mountain Lion) for Xcode - April 2014"
Copy the dmg file to your remote
In the following command, I'm using scp to securely copy the file from my local computer to the remote named remote
$ scp ~/Downloads/command_line_tools_for_osx_mountain_lion_april_2014.dmg remote:Downloads/
ssh to your remote
$ ssh remote
mount the dmg file on the remote
Here, I'm using hdiutil to mount the image
$ hdiutil attach ~/Downloads/command_line_tools_for_osx_mountain_lion_april_2014.dmg
install the package contained in the dmg
Here, installer must be run with sudo because this package needs to be installed on the root file system
$ cd /Volumes/Command\ Line\ Tools\ \(Mountain\ Lion\)
$ sudo installer -pkg Command\ Line\ Tools\ \(Mountain\ Lion\).mpkg -target /
unmount the dmg file
$ hdiutil detach /Volumes/Command\ Line\ Tools\ \(Mountain\ Lion\)
delete the dmg file from the remote; optional
I see no purpose keeping it around, but you can if you want.
$ rm ~/Downloads/command_line_tools_for_osx_mountain_lion_april_2014.dmg
You can automate the installation of Command-Line Tools in bash. I needed to do this when I was automating the developer onboarding setup process.
xcode-select --install && sleep 1
osascript -e 'tell application "System Events"' -e 'tell process "Install Command Line Developer Tools"' -e 'keystroke return' -e 'click button "Agree" of window "License Agreement"' -e 'end tell' -e 'end tell'
Go to developer.apple.com/download/all/ (log in if you're not logged in)
Expand the "View Details" tool tip for "Command Line Tools" of the version you need
Download the .dmg file of those Command Line Tools
Once the .dmg file is downloaded, double click it and install it
If you want to use the version of tools provided in XCode itself you can use xcrun (e.g. xcrun git). From the help at the bottom of the download preference pane:
note that from within Terminal you can use the XCRUN tool to launch
compilers and other tools embedded within the Xcode application. Use
the XCODE-SELECT tool to define which version of Xcode is active.
Type "man xcrun" from within Terminal to find out more.
UPDATED: On Lion 10.7.4 the Command Line Tools are already available from withing XCode. You can get it freely from App Store.
The GCC for OSX won't compile some packages obtained from macports.
https://github.com/kennethreitz/osx-gcc-installer/downloads
By updating my Mac to the latest Mac OS (ie Big Sur), everything broke down to repetition request of installing Xcode-select.
It might seem weird, but I solved the problem by reinstalling & updating to the latest Xcode.
This is just my experience to solve the problem.
try going into Xcode > Preferences... > Downloads and clicking the button with a downward arrow in a circle next to command line tools.
xcode command line tools can be downloaded from here: https://developer.apple.com/downloads/index.action#
April 2014 version direct download link (for developers who just want to get started right away)
https://developer.apple.com/downloads/download.action?path=Developer_Tools/command_line_tools_os_x_mavericks_for_xcode__april_2014/command_line_tools_for_osx_mavericks_april_2014.dmg
How do I get the command line builds tools installed with Xcode 4.4 / Mac OS X v10.8 (Mountain Lion) or later?
For OS X 10.9, you simply install Xcode. The Command Line Tools are bundled with Xcode. From Technical Note TN2339, Building from the Command Line with Xcode FAQ:
Downloading command-line tools is not available in Xcode for OS X 10.9. How can I install them on my machine?
In OS X 10.9, the Downloads pane of Xcode Preferences does not support
downloading command-line tools. Use any of the following methods to
install command-line tools on your system:
If Xcode is installed on your machine, then there is no need to install
them. Xcode comes bundled with all your command-line tools. OS
X 10.9 includes shims or wrapper executables. These shims, installed
in /usr/bin, can map any tool included in /usr/bin to the
corresponding one inside Xcode. xcrun is one of such shims, which
allows you to find or run any tool inside Xcode from the command line.
Use it to invoke any tool within Xcode from the command line.
...
Xcode Command Line Tools can be installed as a side effect of running git --version in Terminal without Git installed. You will be prompted to install the tools as a requirement for running Git. Apple ships a binary of git with the Command Line tools. This is confirmed on the Git for Mac Download page. This seems like a valid option considering that Homebrew requires the Command Line tools to install Git as well according to another SO post. Otherwise, the previous answers are the most direct methods of install the tools.
Is it possible to have more than one version of Xcode installed at the same time?
If so, please post any tip, tricks, or potential issues to watch out for.
EDIT:
The reason I want to install multiple versions is to try out the new sdk beta, but if the new Xcode is buggy I want to be able to use the older version for my existing projects.
Yes, you can install multiple versions of Xcode. They will install into separate directories. I've found that the best practice is to install the version that came with your Mac first and then install downloaded versions, but it probably doesn't make a big difference. See http://developer.apple.com/documentation/Xcode/Conceptual/XcodeCoexistence/Contents/Resources/en.lproj/Details/Details.html this Apple Developer Connection page for lots of details. <- Page does not exist anymore!
Can I have multiple Xcode versions installed?
Solution:
Actually as many of the above answers says, it is possible.
Even according to the following Oracle Mobile Platform Blog, you can install more than one XCodes in the same Mac. The reason why you need to do that may vary according to you.
Scenario:
You might have installed only one version of XCode for now. Mostly the one release behind the latest XCode version which is available through App Store (mine I've Xcode 6.3.2 and I needed to keep it and also install Xcode 7 which is available through App Store).
For Ex:-
You have already installed XCode 6.x, and App Store has XCode 7
already given by App Store. For any reason you need to keep that Older
XCode 6.x(as you know it is stable for some time now) and also you
need to install and try out new XCode 7
So number one question might be, How and Where could you download the Mac OS X installable DMG file for XCode 7 (or may be if you wanna try out an older XCode version)? Ok, here is the direct link apple downloads (you might have to log into Apple Developer account before viewing this link correctly), or else following is a StackOverflow Q&A link which gives the answer to where to download DMG files for XCode IDEs.
So now let's assume that you have obtained any of the DMG file for the XCode version you require to install as secondarily?
Steps:
Follow the steps given bellow which I got from the above given first link of Oracles Mobile Platform Blog.
Close Xcode if running
Rename /Applications/Xcode.app to /Applications/Xcode_6.x.app
Enter the admin password when prompted
Double click the DMG file of your required, pre-downloaded Xcode and install it
Once installed it, before running it, change the new
/Applications/Xcode.app that was just installed to (according to my above given example) /Application/Xcode_7.app
Note*:
[Please patiently read this section until the next Note] When you have two versions of Xcode installed, your workstation has two versions of Command Line Tool (xcodebuild) installed too. The question is what your Terminal and Xcode build command will use to when you are building your iOS App. Because along with the Command Line Tool, iOS SDK which is being used to build your app also depends on.
My experience was I've had two Xcode versions. Xcode 10 (Old one with iOS12.0 - iphoneos12.0), and Xcode 10.1 (New one with iOS 12.1 - iphoneos12.1). So obviously the settings for Command Line Tool was selected to use xcodebuild tool from the Old app. I had to manually select it in Xcode preference window.
Where to set Command Line Tool in Xcode Preference Window?
Select the Locations tab and there, you can select all the installed versions of Command Line Tools (which is xcodebuild).
How to figure out which version of iOS SDK is being used to build your iOS App?
On your Terminal issue following command:
$> xcodebuild -showsdks
Above command should print out all the SDK details which your current Xcode configuration uses to build your Apps. And by seeing the results you will understand that your iOS/iphoneos SDK version depends on changing Command Line Tool (xcodebuild) setting on your Xcode.
Note**:
Above given Apple Downloads link and Oracles MPF blog post links might change and/or unavailable in the future.
So I hope that my this answer might be helpful to somebody else out there!
Cheers!
It's easy to have multiple Xcode installs.
In the installer there's a pulldown for the location... you just need to pick a new location when you're installing the beta version.
These instructions from an Apple dev tools evangelist have the full details (Apple dev username/password required):
https://devforums.apple.com/message/40847#40847
Then grab yourself a custom icon for the Beta version of XCode you're using, so you can tell them apart in the dock:
http://iphonedevelopment.blogspot.com/2009/03/multiple-developer-tool-installs.html
You may want to use the "xcode-select" command in terminal to switch between the different Xcode version in the installed folders.
It seems that Xcode really likes to be in the Applications folder and be called Xcode, especially when using xcodebuild (when building for Carthage for example) - and xcode-select doesn't always seem to cut it.
I have a client project that's still using Swift 2.2, and I'm stuck on Xcode 7 for that and using Xcode 8 for anything else.
So, in my Applications folder, I have Xcode 7 (renamed to Xcode_7) and Xcode 8 (renamed to Xcode_8). Then I rename whichever one I need to simply Xcode, and back again when done. It's a ball-ache, but seems to work.
This shell script simplifies it a bit…
xcode-version.sh
cd /Applications
if [[ $1 = "-8" ]]
then
if [ -e Xcode_8.app ]
then
mv Xcode.app Xcode_7.app
mv Xcode_8.app Xcode.app
echo "Switched to Xcode 8"
else
echo "Already using Xcode 8"
fi
elif [[ $1 = "-7" ]]
then
if [ -e Xcode_7.app ]
then
mv Xcode.app Xcode_8.app
mv Xcode_7.app Xcode.app
echo "Switched to Xcode 7"
else
echo "Already using Xcode 7"
fi
else
echo "usage: xcode-version -7/8"
fi
xcode-select --switch Xcode.app
Note that if you use the xcodebuild command line tool, then the last version of Xcode installed will become the default version. (A symbolic link is installed in /usr/bin.) To use the xcodebuild for the other versions of Xcode you'll need to use the version in the (xcode_install_directory)/usr/bin directory.
note To switch between different versions of the Xcode command-line tools, use the xcode-select tool mentioned by other commenters.
Multiple Versions Of Xcode & Simulators using gem Xcode::Install
Install and update your Xcodes automatically.
You can greatly simplify this process by using the
Xcode::Install Ruby Gem.
You should already have a working installation of the
Xcode Command Line Tools and a version of Ruby that supports building native extensions.
I'd suggest using Homebrew for installing
rbenv and use rbenv to install Ruby.
A guide for this can be found here and many other places.
But it should work with the stock Ruby supplied by newer macOS versions as well, if you install the gem either using sudo (not recommended) or using --user-install when installing the gem.
Installation
Basically:
# Install the Ruby Gem (I'm using rbenv, so no sudo or --user-install)
$ gem install xcode-install
# To list available versions:
# PS!You will get prompted for your Apple Developer / iCloud credentials)
# It's using Apple's own API's so 2FA are supported if enabled
$ xcversion list
6.0.1
6.1
6.1.1
6.2 (installed)
6.3
# To update the list of available versions, run:
$ xcversion update
# To install a certain version, simply:
$ xcversion install 8
##################################################################### 100.0%
Please authenticate for Xcode installation...
Xcode 8
Build version 6D570
This should download and install and activate that version of Xcode.
You can start it from /Applications as usual.
The new version will also be automatically selected for CLI commands
To select a different version as active, you'll run:
xcversion select <version_number>
from the list of installed versions, marked as (installed) like:
# To see the active version in use:
$ xcversion selected
# To select and activate an installed version:
$ xcversion select 8
# To select, activate and change the symlink in /Apllications
$ xcversion select 8 --symlink
Other fun stuff, Simulators etc
Xcode::Install can also install Xcode's Command Line Tools by calling
xcversion install-cli-tools
and can also manage your local simulators using the simulators command.
But instead of repeating more information that is probably going to change over time, head over to the project's GitHub page
for more about this gem.
Staring with Xcode 9, the beta Xcode is labeled 'Xcode-beta.app' and is designed to live side by side with the production version. Info can be found in the Xcode release notes here. (Not using direct link because it breaks often).
From Apple:
Xcode 9 beta 4 can coexist with previous versions of Xcode. Prerelease
versions of Xcode are made available from developer.apple.com,
packaged in a compressed XIP file. To install Xcode during the beta
period, download the XIP file, double-click the file to expand it in
place, then drag Xcode-beta.app to the Applications folder
Download a version
The beta and stable releases can be taken from the Developer Software downloads Application tab, here), but older versions can be taken from here. Just extract the .xib and put Xcode-beta.app in your Applications folder.
Switch versions
Using the beta: sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
Using the original: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Check version changed
You can validate the version has changed by running xed --version, and it will output the correct version: e.g. xed version 12.5 or xed version 13.0
To have multiple Xcode instances installed you can put them to different folders for example /Developer5.0.2/Xcode, but to use them in CI or build environment(command line) you need to setup some environment variables during the build.
You can have more instructions here.
So it is working not just with beta and fresh release, also it's working for the really old versions, you might need it to use with Marmalade or Unity plugins which is not support the latest Xcode versions yet(some times it's happens).
Whatever advice path you go down, make a copy of your project folder, and rename the external most one to reflect what XCode version it is being opened in.
Your choice on whether you want it to update syntax or not, but the main reason for all this bovver is your storyboard will be altered just by looking. It may be resolved by the time a new reader coming across this in the future, or
All the updates for new version of xcode will be available in appstore if you have installed the version from appstore. If you just paste the downloaded version appstore will show install not update. Hence keep the stable version downloaded from appstore in your applications folder.
To try new beta releases i usually put it in separate drive and unzip and install it there. This will avoid confusion while working on stable version.
To avoid confusion you can keep only the stable version in your dock and open the beta version from spotlight(Command + Space). This will place beta temporarily on dock. But it will make sure you don't accidentally edit your client project in beta version.
Most Important:- Working on same project on two different xcode might create some unwanted results. Like there was a bug in interface builder that got introduced in certain version of xcode. Which broke the constraints. It got fixed again in the next one.
Keep track of release notes to know exactly what are additional features and what are known issues.
First, remove the current Xcode installation from your machine. You can probably skip this step but I wanted to start fresh. Plus — Xcode was behaving a little weird lately so this is a good opportunity to do that.
Install Xcode 8 from the App Store. Make sure project files (.xcodeproj) and workspace files (.xcworkspace) can be opened with the new Xcode installation (remember to select the Later option whenever prompted).
Download the Xcode 7.3.1 dmg file from Apple. Double-tap the newly downloaded dmg file in order to get the standard “Drag to install Xcode in your Applications folder”. Don’t do that. Instead, drag the Xcode icon to the desktop. Change the file name to Xcode 7.3.1. Now drag it to the Applications folder.
Now you have two versions of Xcode installed on your machine. Xcode 7.3.1 and Xcode 8.
Details: Install Xcode 7 & Xcode 8 side by side