XcodesOrg / xcodes

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

sudo xcodes runtimes install "iOS 15.5"` fails on Apple Silicon #272

Open mc7h opened 1 year ago

mc7h commented 1 year ago

Describe the bug

sudo xcodes runtimes install "iOS 15.5" fails.

To Reproduce Run: sudo xcodes runtimes install "iOS 15.5" --keep-archive
or sudo xcodes runtimes install "iOS 15.5"

Observed on my M1 machine; verified by my colleague on theirs.

Works just fine on an Intel machine I had access to.

Expected behavior The simulator runtime should install successfully.

Downloading Runtime iOS 15.5: 100%
Mounting DMG
Installing Runtime
Deleting Archive
Finished

Screenshots

Installing Runtime
Error: Failed executing: `/usr/sbin/installer -pkg 
/Users/mc7h/Library/Caches/com.robotsandpencils.xcodes/com.apple.pkg.iPhoneSimulatorSDK15_5.pkg -target /` (1).

Version

StevenSorial commented 1 year ago

Can you check if your terminal does have Full Disk Access in the macOS preferences? if you are using iTerm, you need to give it the permission explicitly.

mc7h commented 1 year ago

That fixed it. I must've lost the setting during an upgrade to ventura. Thanks.

jesster2k10 commented 1 year ago

Running this in a CI, how could I ensure full disk asccess here?

AkashD-Developer commented 10 months ago

Hey @jesster2k10, were you able to find any solution for it? How could we install runtimes in a CI environment?