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

ERROR: Could not start the simulatelocation service. Make sure a developer disk image is mounted! #1553

Open
basvdijk opened this issue Apr 12, 2024 · 11 comments

Comments

@basvdijk
Copy link

basvdijk commented Apr 12, 2024

When running idevicesetlocation on MacOS 14.4.1 with iOS 17.4.1 I get the error:

ERROR: Could not start the simulatelocation service. Make sure a developer disk image is mounted!

I am wondering if some got it to work and what steps are needed. Or is with the new implementation of the images, idevicesetlocation not going to work anymore?

This is issue could be related to #1547 and #1496

@mexmer
Copy link

mexmer commented Apr 12, 2024

ideviceimagemounter doesn't support iOS17, apple changed how developer images work in ios 17, so you will need first use xcode, to upload developer image into your phone, and they you will be able to play with idevicesetlocation.

@basvdijk
Copy link
Author

@mexmer Are there any instructions on how to upload the developer image to my phone?

@mexmer
Copy link

mexmer commented Apr 12, 2024

as i said, use Xcode on mac. there is no support for uploading ios17 images in libimobile project atm.
xcode will automatically create and load personal developer image into your ios device, when you try debugging application.
other than that. i don't know about any way.

there is python project based on libimobile
https://github.com/doronz88/pymobiledevice3
but i have no idea, if it can generate personalized developer image (new format, that apple decided to use since ios17).

@basvdijk
Copy link
Author

@mexmer Maybe I misunderstood, just to be sure: Do you mean with "use XCode on Mac":

  • A: Use XCode to debug whatever you did with libimobiledevice like fake a GPS location
  • B: Use XCode to upload the developer image, then you can use libimobiledevice to fake a GPS location.

I tried [pymobiledevice3](https://github.com/doronz88/pymobiledevice3) and was able to fake GPS locations. It is more work and involves quite some work though.

@mexmer
Copy link

mexmer commented Apr 12, 2024

yes i did mean use xcode on mac, then you can do B ... but if you can do it with that python project, i guess you don't need xcode then.

@basvdijk
Copy link
Author

@mexmer When I use option B and run my app on iOS, I assume XCode has uploaded the developer image. However I still get:
ERROR: Could not start the simulatelocation service. Make sure a developer disk image is mounted!

Do you know a way to verify or force XCode to upload the developer image?

@mexmer
Copy link

mexmer commented Apr 15, 2024

xcode uploads developer image to device when you debug application. i had not tested if it works with simulatelocation, since my application doesn't use it. tbh. with ios 17.4 even idevicedebug doesn't work for me, hence why i'm using xcode.

@basvdijk
Copy link
Author

That is exactly my problem. When I debug via XCode, still idevicedebug doesn't work. I ended up using https://github.com/doronz88/pymobiledevice3

@mexmer
Copy link

mexmer commented Apr 16, 2024

idevicedebug doesn't work, because new developer images use new protocol.
actually that protocol is not new, it's there since ios14, but ios17 images do not support old protocol, that is used by idevicedebug. images for ios 16 supported both protocols.

if you want to debug applications on ios 17 without xcode, you might try appium, it should support debugging on ios17 trough webdriver. i'm just passing this information from my friend, since i have not used appium.

@lingshigang
Copy link

pymobiledevice3 developer dvt simulate-location set -- 40.690008 -174.045843
loper command
Usage: pymobiledevice3 developer dvt simulate-location set
[OPTIONS] LATITUDE LONGITUDE
Try 'pymobiledevice3 developer dvt simulate-location set -h' for help.

Error: Got unexpected extra arguments (--tunnel 00008101-000C6DEA01C1034E)

@lingshigang
Copy link

pymobiledevice3 window Could not start the simulatelocation service

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

3 participants