Xcode version in App Store and in Xcode do not match - xcode

I am having a strange issue. I need access to Xcode 10 to test my app. So I downloaded and installed the latest version of Xcode from the App Store to my Mac. I have confirmed this in the App Store:
See in the top left in the above image, version 10.1 of Xcode is installed.
But to my frustration when I open Xcode it still is version 9, as shown in this screen shot:
See just below the Xcode logo it says version 9.4.1
What is going on? I tried restarting my computer again but the Xcode version is still 9.4 when i open xcode. Is there somewhere I can choose to use version 10 of Xcode?

You might have possibly installed multiple xCode applications in your system.
Option 1:
Select Finder -> Applications
Check if there are multiple xCode applications.
Option 2:
Go to your project folder.
Right click . xcodeproj or .xcworkspace file -> Open With
This will show all the xCode applications installed in system.

Related

Even after rolling back to Xcode 13.3.1 I can no longer debug apps on my iPhone with iOS 15.6

After my iPhone 13 updated to iOS 15.6, Xcode 13.4.1 no longer was able to debug apps on the device. Many posts and Xcode support recommend that I roll back to Xcode 13.3.1.
So I renamed Xcode to "Xcode 13.4.1", downloaded the xip for 13.3.1 and also confirmed that I am running the previous version, via the About menu.
Yet I still get the following error:
Failed to prepare device for development. This operation can fail if
the version of the OS on the device is incompatible with the installed
version of Xcode. You may also need to restart your mac and device in
order to correctly detect compatibility.
I have cleaned the build folder, I also downloaded the 15.5 image, renamed it to 15.6, and placed it in the DeviceSupport folder. But it nothing has worked.
I don't know if Xcode uses any config files that I need to clean, or anything else I can't think of. Has anyone been through this?
Xcode 13.4 (build 13F100) has a known issue preparing devices running iOS 15.6 beta and is not officially supported. The fix is to wait for a newer build of 13.4.x Xcode.
Anecdotally some have said it works after disconnecting the phone and restarting both the phone and the Mac.
There are two workarounds:
The official workaround from Apple is to install Xcode 13.3.1. You have tried this. The majority of the config files are inside the Xcode directory. You can download AppCleaner and have it show you everything it would delete if you allowed it to uninstall Xcode. For me that list was 11 GB and 39 files. I'd exam those files and possibly make copies of anything outside /Applications/Xcode.app before allowing it to remove.
Navigate to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ and duplicate the 15.5 folder with a new name of 15.6. If this works, it is much safer.

Unable to run applications built in Xcode 5 in lower versions of xcode

I have a Mac version 10.7.5 with Xcode 4.6.3 installed. I have an application built in Xcode 5 and this project doesn't open in my older Xcode installation. It shows me an error saying
The document "Main.Storyboard" could not be opened.Could not read archive.Please use a newer version of Xcode. Consider changing the document's Development target to preserve compatibility.
Why am I not able to run this application using My Xcode.
In Xcode 5, select the storyboard and in the File Inspector, make sure the following option is selected:
You should then be able to open it in Xcode 4.6.3.

Downgrade Xcode 5 to Xcode 4.6.1

I have been trying to research a way that I would be able to revert back to Xcode 4.6.1, I can't seem to find a solution.
I've seen that in the past people have downgraded their Xcode.
Is there a way that I can downgrade Xcode 5 back to Xcode 4.6.1?
I have older versions of apps which clients do not wish to upgrade. However I still need to make amendments to theses applications. I need them to remain the same.
Is there any way that I can downgrade Xcode?
Move Xcode 5 to the Trash. Download and install Xcode 4.6. You can download older versions of Xcode from the following URL:
https://developer.apple.com/downloads/index.action
You can also have both Xcode 4 and 5 installed. You will have to rename your existing Xcode 5 app from Xcode to another name like Xcode5 before you install Xcode 4.6 in the Applications folder.
I followed your instruction to downgrade xcode 5.1 to xcode 4.6.1. The steps seems to work, however, when I try to install the command line tool, the Components tab of the Downloads preferences panel shows "No components are available". How do I get the command line tool to show up in the component panel?
Before the downgrade, with xcode 5.1, I did "xcode-select —install" to install command line tool. I assume it has been removed when I dragged the xcode 5.1 to the trash.

How to downgrade Xcode to previous version?

I have to use Xcode occasionally, and have now come across a problem where I've upgraded to Xcode 4.6, but another piece of software I'm using doesn't support it, so I need to go back to Xcode 4.5.
I'm not used to the way Macs work in general, so if the answers provided could be written with that in mind, that'd be helpful. :)
I'm assuming you are having at least OSX 10.7, so go ahead into the applications folder (Click on Finder icon > On the Sidebar, you'll find "Applications", click on it ), delete the "Xcode" icon. That will remove Xcode from your system completely. Restart your mac.
Now go to Xcode Releases page or Apple Developer More Downloads and download an older
version of Xcode, as needed and install. You need an Apple ID to login to that portal.
After install, you can also switch between multiple versions:
Xcode > Preferences > Locations > Command Line Tools
When you log in to your developer account, you can find a link at the bottom of the download section for Xcode that says "Looking for an older version of Xcode?". In there you can find download links to older versions of Xcode and other developer tools

Xcode 4.3 installation error

When I click on a project on Xcode it loads the old xcode, but I just installed the new XCode 4.3. How can I configure my Mac to load the new Xcode instead of the old Xcode?
I know that I had installed correctly the new Xcode 4.3 because I can still load it just by clicking on the icon of Xcode 4.3, but my old Xcode still somewhere of the hard drive causing it to boot when you click directly on any file of a project on Xcode.
It is very useful to load the Xcode directly from the projects itself vs. loading first the Xcode, then looking for the right project to open.
Thank you in advance.
Xcode 4.3 [is now fully self-contained][1] in the app bundle that is installed in the /Applications folder. The 4.2 installation in the /Developer folder is left intact. The first time you run Xcode 4.3, you'll be prompted to remove old tools.
You have to delete Xcode from /Developer/Applications, and drag the Xcode 4.3 app to /Applications. It should work fine after that.

Resources