Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open simulator xcode 14 by Rosetta to fix scroll

I just updated to xcode 14, and it seems the simulator can't run with Rosetta to fix scroll lag. Does anyone have a solution that can help me? thank you

This is photo can not open by Rosetta is here

Update: Thanks for all you guys help We have 2 solutions:

  1. (Recommended) James Risner and Manu 's solution: Force open simulator by terminal. First you need force quit simulator, than open it by terminal, keep the terminal when using simulator.
  2. Guillaume S 's solution: add new permissions admin/user for Xcode.app, Simulator.app, Simulator's Content file and Info.plist. Then, follow Guillaume S 's answer

Xcode 14.1 update: These solutions can't work anymore. So don't update now, Hope Apple will fix this problem soon

like image 829
Kevin Avatar asked Mar 23 '26 04:03

Kevin


2 Answers

Solution for Xcode 14.0 (not working for Xcode 14.1 & 14.2)

Open the terminal and type :

arch -x86_64 /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator

This forces the use of Rosetta.

like image 192
Manu Avatar answered Mar 25 '26 17:03

Manu


Launching Simulator.app under Rosetta is not supported and should not be needed. I am not aware of any issue which would require this.

You probably want to either boot the device in Rosetta or spawn some process in Rosetta, eg:

xcrun simctl boot <UDID> --arch=x86_64

or

xcrun simctl spawn <UDID> --arch=x86_64 ...

Additionally, if your app is x86_64-only, it will launch fine in a sim booted as arm64.

Note: Editing any files within Xcode.app will break its signature, meaning updates will fail to apply which will trigger a full download of Xcode.app (after first downloading and failing to apply a delta update). If you really need to launch Simulator.app as x86_64, use:

arch -x86_64 /path/to/Xcode.app/Contents/Developer/Applications/Simulator.app/MacOS/Simulator

or even create an alias in your ~/.zshrc, so you can just run sim:

alias sim='arch -x86_64 $(xcode-select -p)/Applications/Simulator.app/Contents/MacOS/Simulator'

AND file a radar about why you feel you need to do this at http://feedback.apple.com.

Followup: Thanks to whomever filed the radar about the HID issue with Simulator.app running as arm64 native after I posted this. The issue has been fixed in Xcode 14.1.

like image 42
Jeremy Huddleston Sequoia Avatar answered Mar 25 '26 18:03

Jeremy Huddleston Sequoia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!