xcodes icon indicating copy to clipboard operation
xcodes copied to clipboard

Failing the install process of runtimes for M1

Open brahayan-dev opened this issue 1 year ago • 4 comments

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

brahayan-dev avatar Apr 25 '24 18:04 brahayan-dev

@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?

MattKiazyk avatar Apr 25 '24 20:04 MattKiazyk

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?

brahayan-dev avatar Apr 26 '24 14:04 brahayan-dev

@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

MattKiazyk avatar Apr 26 '24 15:04 MattKiazyk

Same issue

danhhgl avatar Sep 05 '24 21:09 danhhgl