iOS simulator inertia while scrolling
Asked Answered
M

3

22

I recently upgraded my laptop to Macbook M1 pro. I have a scroll view and it used to scroll with inertia when I use three finger to drag on my old Macbook air.

Now with the M1 chip there is no inertia when scrolling. I changed the iOS simulator to use Rosetta but still the scroll is not smooth like it used to be before.

Also is there any way to swipe a scroll view in iOS simulator via two finger swipe like we use in browser? My app has lots of scrollview and it's important to me.

Merrile answered 2/7, 2021 at 10:7 Comment(3)
is this happening all time or just for specific app you built ?Inhaler
happening in default apps tooMerrile
its scrolling fine in my real devices and android emulator.Merrile
R
36

As written in the solution for iOS Simulator scrolls too fast on Apple M1 the issue seems to be linked to the Simulator app running on Apple M1 code. Switching it to use Intel (=Rosetta) did solve the issue for me:

To run in Rosetta, right click on Xcode and choose "Show Package Contents", from there you navigate to "Contents > Developer > Applications". There you'll find the Simulator app. If you right click on it and choose "Show info", you'll find an option to run it using Rosetta.

Interestingly the problem appears for me only when I try to run an old iOS 13.7 Simulators. It seems that Apple has fixed the issue for more recent iOS versions (like 14.5).

Rosiarosicrucian answered 25/8, 2021 at 21:14 Comment(9)
Happening to me running on ARM using iOS 15Lutist
Issue is still there on iOS 15.2 simulator. The Rosetta trick helped, thanks.Dropping
Solved it for me in Simulator on iOS 15.5, thanks!Helicon
i use iOS 15.4 but its still not fixed by apple mbp m1Tidewater
Solved it for me, thanksExtent
Xcode 14 removed Rosetta option from Simulator...Birdie
Issue still there on iOS 17 simulator.Oriente
@FawadMasud: are you still using iOS 13 Simulators? I haven’t run them for a long time, so I don’t know if there are issues… Apple probably doesn’t run them either.Rosiarosicrucian
@Rosiarosicrucian I am using iPhone 15 simulator (iOS 17.0) on Xcode 15.0.1.Oriente
I
2

There is no longer an option in the iOS Simulator's Get Info dialog to run with Rotessa. Instead, what you can do is launch the iOS Simulator from Terminal using the following command:

arch -x86_64 /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator
Imhoff answered 4/10, 2022 at 14:16 Comment(2)
This didn't resolve it for me :(Marchak
didn't resolve for me, both 15.2, 15.4 or 17.2 Xcode 15.2 MacOS Sonoma Macmini m1Cambridgeshire
J
0

Here is a working fix for 2023-24(Not Permanent).

Use this in Terminal.

  1. Get list device ID: xcrun simctl list

  2. Launch: xcrun simctl boot [deviceID] --arch=x86_64

  3. Example : xcrun simctl boot 2BDDB447-AA8D-4BD4-8BFA-2F54363C2235 --arch=x86_64

If you face xcrun: error: unable to find utility "simctl", not a developer tool or in PATH this error in terminal. Then just go to Locations in Xcode settings, click and select Xcode version in Command Line tools. (Open Xcode > Click Xcode(options) > Settings > Locations > Command Line Tools > Select the Xcode version.). Then try the steps.

Thanks to this

Jaye answered 16/5, 2024 at 11:16 Comment(2)
step 2 is not opening the simulator at allSonnie
@CompaqLE2202x are you exactly tried like the example(step 3)? or try after completing the steps in the last description(xcrun: error:....)Jaye

© 2022 - 2025 — McMap. All rights reserved.