8

I am running MacOS 10.14.6 and would like to install XCode into the /Applications folder.

Trying to download it using the Appstore, I get the error message "Xcode can't be installed because macOS 10.15.2 or later is required".

Hence, I downloaded from https://developer.apple.com/download/more/ the file "Xcode 11.4.xip".

Following this advice, I installed the xip file simply by opening it (Webbrowser -> Downloads -> Open File). This seemed to do something; at least a progress windows told me that the file is being extracted.

However, I don't get any prompt which would offer me a place on where to store the file, but I ended up with a directory ~/Downloads/Xcode.app. Therefore, was doing a

mv ~/Downloads/Xcode.app /Applications

Now to test XCode, I went (using the Finder) to /Applications, located XCode.app and doubleclicked it. I got the error message "You have macOS 10.14.6. The application requires macOS 10.15.2 or later".

What can I do to get XCode for my Mac?

user1934428
  • 19,864
  • 7
  • 42
  • 87
  • Seems like the problem is how to use a Mac. Try SuperUser or AskDifferent. – matt Apr 05 '20 at 17:39
  • “Hence, I downloaded from https://developer.apple.com/download/more/ the file "Xcode 11.4.xip"” And that was the very same version of Xcode that the App Store told you _not_ to download. – matt Apr 05 '20 at 17:41
  • Yes, but the App store, which knows what OS version I have, did **not** tell me what version would be the correct one for me. Somehow Apple likes to keep it as mystery, which program version is suitable for which MacOS version. – user1934428 Apr 10 '20 at 18:09

2 Answers2

10

The error is right, Xcode 11.4 doesn't run on Mojave.

Download Xcode 11.3.1

vadian
  • 274,689
  • 30
  • 353
  • 361
  • This version indeed works. I wished the App Store would have provided me with this information..... – user1934428 Apr 10 '20 at 18:58
  • 1
    I downloaded Xcode 11.3.1 from https://download.developer.apple.com/Developer_Tools/Xcode_11.3.1/Xcode_11.3.1.xip – user674669 Oct 14 '20 at 07:40
  • Above link does not work (says "Unauthorized"... ) unless you arrive at the download (while logged in to your developer account) from this page:(which also has all the other versions): https://developer.apple.com/download/more/ –  Feb 18 '22 at 10:15
  • That's not true. You may force 11.4 to run on Mojave but there are problems with debugging ios 14+ – Sebastian Aug 03 '22 at 22:01
2

I finally got a work around it, the solution is simpler than you might think.

Open the info.plist and change the minimum version allowed. You can open the file installing:

brew cask install pref-setter

Running 11.5 on Mojave 10.14.6 :

enter image description here

Amit
  • 4,837
  • 5
  • 31
  • 46
  • 2
    Where is the info.plist file? – 0xD1x0n Sep 21 '20 at 20:04
  • 2
    @Fadolphin you can find it in right click on xcode and show package content - > content. – Niraj Oct 08 '20 at 07:33
  • @Niraj after changing it to the Mojave version it still appears `You can’t use this version of the application “Xcode” with this version of macOS. You have macOS 10.14.6. The application requires macOS 10.15.2 or later.` – Oliver D Oct 27 '20 at 09:45