Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulator install fails on Apple Silicon #464

Open
ghost opened this issue Aug 17, 2022 · 4 comments
Open

Simulator install fails on Apple Silicon #464

ghost opened this issue Aug 17, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 17, 2022

I have tried installing a simulator on three different Apple Silicon devices (two M1 MacBooks and one M1 Mac Mini). For all machines, the Xcode install works fine but then the simulator install fails always here:

> xcversion simulators --install='iOS 15.0' --no-progress
Installing iOS 15.0 Simulator for Xcode 13.4.0...
Mounting DMG
Expanding pkg
Expanded pkg into /Users/anka/Library/Caches/XcodeInstall/com.apple.pkg.iPhoneSimulatorSDK15_0
Unmounting DMG
Setting package installation location
Rebuilding package
Please authenticate to install iOS 15.0 Simulator...
[!] Could not install iOS 15.0 Simulator, please try again

It seems enabling system extensions would be needed, this popped up during the install:
Screenshot 2022-08-11 at 16 06 03

I did not find any mention of this in the docs.

What is the support status on Apple Silicon for simulator install? Is allowing system / kernel extensions required for it to work?

@ghost
Copy link
Author

ghost commented Aug 17, 2022

Tried installing with the kernel extensions allowed, still fails 😞

Xcode version is 13.4.1, installed with the same tool.

@Nezz
Copy link

Nezz commented Aug 19, 2022

I think the system extension thing is a red herring. The actual issue seems to be that the DMG xcode-install downloads (e.g. https://devimages-cdn.apple.com/downloads/xcode/simulators/com.apple.pkg.iPhoneSimulatorSDK15_4-15.4.1.1650505652.dmg) is for x86.

This error is displayed when trying to run the installer from Finder:
Screen Shot 2022-08-19 at 11 18 32 AM

@fkoner
Copy link

fkoner commented Sep 22, 2022

Which terminal are you using?
I had a similar issue.
Maybe is not related, but in my case I was using iTerm.
Once I enabled Full Disk Access to Iterm I was able to install the simulator.

Which is the output of this command:

cat /var/log/install.log

That output helped me a lot to understand the root cause.

Hope this helps.

@ghost
Copy link
Author

ghost commented Sep 22, 2022

Disabling SIP worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants