Search code examples
xcodexcode10xcode11

"Install additional required components" when switching between Xcode 10 and 11 beta


I often have to switch between Xcode 10.2.1 and Xcode 11.0 beta 2. Most of the times there is this popup saying Install additional required components.

In the past I always used sudo xcode-select -s <pathToXcodeVersion> to switch between Xcode versions, which prevented this popup to show. But this doesn't work, or mostly doesn't work. I have to install those components to get the Xcode version running.

Also it doesn't matter if I switch from Xcode 10.2.1 to 11.0b2 or vice versa.

I'm running macOS 10.14.5.

Anyone having the same problem? And perhaps a solution?


Update: Still not fixed in Beta 5


Update 2: Switching between Xcode 11 and other versions works now without showing this dialog


Solution

  • I think I got it now:

    When I want to switch Xcode versions, in the currently opened version I go to Settings > Locations and set the Command Line Tools version that I want to switch to.

    Then I close Xcode and open the just selected Xcode version.

    I tested this now a few times switching from Xcode 10.2.1 and 11.0 Beta 5.