Schlaubischlump/LocationSimulator

iOS 16: `Error Changing Location`

tombirch1995 opened this issue · 18 comments

Hi,

I have a MacBook Pro 16inch 2021 running Mac OS venture Beta, iPhone 13 Pro Max running IOS Beta & iPad 2021 again running IOS 16 Beta. both these devices are displaying "error changing location - could not change the location"

tried using latest download via your website and also using Xcode Beta but still nothing.

tested on iPhone 5s running IOS 12.5.5 on Mac Pro 2012 running latest MAC OS stable public release no issues with that phone but with IOS 16 same issue "error changing location - could not change the location"

also tried the custom Disk Image for IOS 16 no help.

Any suggestions?

Mhh interesting. Are you able to install apps using xcode ? That would mean that the developer disk image is working.

It sounds like either you used the wrong (maybe outdated) developer disk image or libimobiledevice needs an update.

Its always tricky to get the correct DeveloperDiskImage for beta versions. Usually you can copy them from Xcode, if you are able to install apps using Xcode.

You homebrew installation of libimobiledevice has nothing to do with the version of libimobiledevice used by LocationSimulator.

Could you try the following:
1. Reboot you iPhone and / or iPad and mac
2. Open Xcode and install any project it doesn't matter which on your iPhone. You need to install something otherwise it will not work
3. Open LocationSimulator and check if you can no spoof your location.

If you want to, I can go into more details, why this should work.

Try the steps in the next comment, they are easier.

I made some more tests with iOS 16 and everything is working correctly even without Xcode installed.

I'm therefore pretty sure that you either did not activate Developer Mode or that you used the wrong Developer Disk image. Each time you change the Developer Disk image in LocationSimualtor you MUST reboot your iOS device. Otherwise the new Developer Disk Image ist not used.

Make sure you enabled Developer Mode on your iOS device before trying any of the things below!

Edit: Since version v0.1.9 (5) LocationSimulator should automatically add the Developer Mode settings item to Privacy & Security. You still need to enable it, but you do not need to connect your device to Xcode.

A. For everybody who got the same problem try the following:

  1. Turn off your iOS device completely (slide to power off)
  2. Open LocationSimulator
  3. Open Preferences -> DiskImages -> iPhoneOS
  4. If iOS 16 appears in the list, select the iOS 16 entry and click the refresh button, if not skip to 6.
  5. A new download should now be initiated
  6. Turn on your iOS device
  7. Try to use LocationSimulator

B. What do I do if it is still not working:

  1. Turn off your iOS device completely (slide to power off)
  2. Install Xcode-beta.app and make sure you have the latest version !!!
  3. Open '/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/16.0/' in Finder
  4. Open LocationSimualtor -> Preferences -> DiskImages -> iPhoneOS
  5. Click the + button and add the files you opened in finder. For 'version' enter 16.0
  6. You should now have a new iOS 16 entry in the list
  7. Turn on your iOS device
  8. Try to use LocationSimulator

Only if neither of the above is working, report the bug !

Why is this so complicated ?

It's a beta version you are using on your iOS device and LocationSimulator is intended for developers. While I try to make it easy to use for stables versions of iOS, the same does not apply to beta versions, wether it is a developer or public beta, things just change too quickly when apple is testing new iOS versions. You therefore have to manually fix things. I included the DiskImages preference pane to help you with that (A), but sometimes the automatic download can't keep up with new versions and you have to get the DeveloperDiskImages yourself (B).

Hi, Sorry I know im a pain but apple has updated their latest iOS 16 beta and Developermode is no longer. Any Suggestions?

Hi, do you have a source, that they have removed DeveloperMode ? That doesn't sound plausible to me, since they only introduced it with iOS 16. The documentation does not mention a removal.

Okay, I will update my iPad this evening and see if DeveloperMode is gone on my device as well. Do you currently get an error when you try to use LocationSimulator ?

Just for my information: Do you use the public beta or the developer beta ?

Seems like you are not the only person with this problem. Does this work for you:

https://reddit.com/r/iOSBeta/comments/w1fcr3/developer_mode_available_on_ios_16_public_beta/

I just updated my iPad. Developer Mode is still there, right above Lockdown mode. This is most likely a problem with your devices.

I made some more tests with iOS 16 and everything is working correctly even without Xcode installed.

I'm therefore pretty sure that you either did not activate Developer Mode or that you used the wrong Developer Disk image. Each time you change the Developer Disk image in LocationSimualtor you MUST reboot your iOS device. Otherwise the new Developer Disk Image ist not used.

Make sure you enabled Developer Mode on your iOS device before trying any of the things below!

A. For everybody who got the same problem try the following:

  1. Turn off your iOS device completely (slide to power off)
  2. Open LocationSimulator
  3. Open Preferences -> DiskImages -> iPhoneOS
  4. If iOS 16 appears in the list, select the iOS 16 entry and click the refresh button, if not skip to 6.
  5. A new download should now be initiated
  6. Turn on your iOS device
  7. Try to use LocationSimulator

B. What do I do if it is still not working:

  1. Turn off your iOS device completely (slide to power off)
  2. Install Xcode-beta.app and make sure you have the latest version !!!
  3. Open '/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/16.0/' in Finder
  4. Open LocationSimualtor -> Preferences -> DiskImages -> iPhoneOS
  5. Click the + button and add the files you opened in finder. For 'version' enter 16.0
  6. You should now have a new iOS 16 entry in the list
  7. Turn on your iOS device
  8. Try to use LocationSimulator

Only if neither of the above is working, report the bug !

Why is this so complicated ?

It's a beta version you are using on your iOS device and LocationSimulator is intended for developers. While I try to make it easy to use for stables versions of iOS, the same does not apply to beta versions, wether it is a developer or public beta, things just change too quickly when apple is testing new iOS versions. You therefore have to manually fix things. I included the DiskImages preference pane to help you with that (A), but sometimes the automatic download can't keep up with new versions and you have to get the DeveloperDiskImages yourself (B).

Can confirm solution 'A' works like a charm on my iPhone 13 Pro Max and MacBook Air both with the latest iOS and macOS developer betas.

The problem I was facing was that I couldn't find any developer mode option under location & privacy setting. The solution was to reset the Location and Privacy settings in General -> Transfer or Reset iPhone. As I did that and from there followed instructions in solution 'A' it worked as it should. Thank You.

Upgraded to iOS 16.0 public release (not beta) and also upgraded Xcode 14.0. I am getting "error changing location - could not change the location".

Tried above A & B .. Downloaded and also manually linked, does not work. MacOS is 12.5.1 .. only hope is to upgrade to 12.6 and try.

pwd: ~/Library/Containers/de.davidklopp.locationsimulator/Data/Library/Application Support/LocationSimulator/iPhone OS
ls -l : 16.0 -> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/16.0

Anything else I can try?

Logs have this:

Device connected
DeveloperDiskImage is already mounted.
Uploading ****/iPhone OS/16.0/DeveloperDiskImage.dmg
Could not start com.apple.dt.simulatelocation!

Have you activated Developer Mode ?

SOLVED
There is no developer mode option.. so I just reset the Location and Privacy settings in General -> Transfer or Reset iPhone. Suggested in previous post by numanmughal

EDIT: Worked after enabling Developer mode.. Got the hint from here: https://developer.apple.com/forums/thread/710066
Developer mode shows up only after connecting with Xcode.

Have you activated Developer Mode ?

Thanks. Worked after enabling it.