feat(iOS): replace fbsimctl with AppleSimUtils for `setLocation`.
Replace deprecated fbsimctl with AppleSimulatorUtils for setLocation API.
AppleSimUtils setLocation is now working as expected thanks to a workaround introduced in version 0.9.6 and another fix from version 0.9.7.
setLocation API (of ASU) requires from the Simulator app to run on non-headless mode (the Simulator app must be opened).
The error that prevents us from setting the location is now Unable to find application named ‘Simulator’, might happen because the user we're using on our agents doesn't have UI (user "builder").
The Simulator app must be open in order to set the new Simulator location (open -a Simulator is failing).
Fixed
Still need to figure out how we can overcome the fact that we can't open the Simulator app on CI @d4vidi
Update: fb/idb's (formerly fbsimctl) set-location API is not working on headless (without open GUI) Simulator mode as well.
@asafkorem can we get this released?
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For more information on bots in this reporsitory, read this discussion.
The issue has been closed for inactivity.
Not stale, I think we should get back to this PR soon 🙂
Hi !
Not sure how helpful there is, but here's how I'm getting the location to work on IOS (headless mode) Just dropping this here in case of ! If it doesn't help here, it might help people who are waiting for this PR i guess :D

Hi !
Not sure how helpful there is, but here's how I'm getting the location to work on IOS (headless mode) Just dropping this here in case of ! If it doesn't help here, it might help people who are waiting for this PR i guess :D
Thanks @Alaa-Ben! Sounds like a great contribution to Detox, if you'd like to take that to a PR.
Sure ! + I use idb which is very reliable as it's used at facebook. I'll try to get started on this ASAP 😄
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For more information on bots in this repository, read this discussion.
The issue has been closed for inactivity.