XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.58k stars 119 forks source link

Failing the install process of runtimes for M1 #362

Open brahayan-dev opened 2 months ago

brahayan-dev commented 2 months ago

Looks like that sudo xcodes runtimes install 'iOS 15.5' is not available for Apple M1 Pro, it prompted

Found existing Runtime that will be used, at /Users/<my.user>/Downloads/com.apple.pkg.iPhoneSimulatorSDK15_5-15.5.1.1653527639.dmg.
Mounting DMG
Installing Runtime
Error: Failed executing: `/usr/sbin/installer -pkg /Users/<my.user>/Library/Caches/com.robotsandpencils.xcodes/com.apple.pkg.iPhoneSimulatorSDK15_5.pkg -target /` (1

And trying by hand it answers:

image

MattKiazyk commented 2 months ago

@brahayan-dev try deleting that dmg in /Users/<my.user>/Downloads/com.apple.pkg.iPhoneSimulatorSDK15_5-15.5.1.1653527639.dmg and doing a runtime install again?

brahayan-dev commented 2 months ago

Nothing, happens the same to launch sudo xcodes runtimes install 'iOS 15.5'

Downloading with urlSession - for faster downloads install aria2 (`brew install aria2`)
Downloading Runtime iOS 15.5: 100%
Mounting DMG
Installing Runtime
Error: Failed executing: `/usr/sbin/installer -pkg /Users/<my.user>/Library/Caches/com.robotsandpencils.xcodes/com.apple.pkg.iPhoneSimulatorSDK15_5.pkg -target /` (1).

It downloaded this image again com.apple.pkg.iPhoneSimulatorSDK15_5-15.5.1.1653527639.dmg, the same used before.

Did you create a new image for this version?

MattKiazyk commented 2 months ago

@brahayan-dev

So Xcodes only supports downloading the platforms from Xcode 14+ because that's when they split out the simulators. Simulator 15.5.

You can try downloading via Xcode inside the platforms manually.

e0JfsLSRh5beF8kebK438eeW