Schlaubischlump / LocationSimulator

MacOS application to spoof / fake / mock your iOS / iPadOS or iPhoneSimulator device location. WatchOS and TvOS are partially supported.
https://schlaubischlump.github.io/LocationSimulator/
GNU General Public License v3.0
2.39k stars 184 forks source link

iOS 16: `Error Changing Location` #128

Closed tombirch1995 closed 1 year ago

tombirch1995 commented 1 year ago

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?

Schlaubischlump commented 1 year ago

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.

tombirch1995 commented 1 year ago

Hi Thanks for you reply,

Ive just checked the disk image and both iPad os and iPhone os have iOS 16 files. Xcode is working great, ive tried this on two Macs now both with different operating systems.

Ive ran "brew install libimobiledevice” which has now updates 26 files. But still the same error

Do you want to team viewer onto my Mac to see if you can work it out? Might help others

tom

On 8 Jul 2022, at 21:32, Schlaubischlump @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/Schlaubischlump/LocationSimulator/issues/128#issuecomment-1179339455, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMGPDTK2ZWSIZA45K5YJRLVTCF4TANCNFSM53BNSS5A. You are receiving this because you authored the thread.

Schlaubischlump commented 1 year ago

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.

Schlaubischlump commented 1 year ago

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).

tombirch1995 commented 1 year ago

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

Schlaubischlump commented 1 year ago

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.

tombirch1995 commented 1 year ago

Hello,

Have a look on the latest update I now have tested on iPhone 13 Pro Max and also 12 and both no longer list Dev mode in privacy and security - they have introduced lockdown mode and taken away Dev mode cannot find it at all on the latest version.

Tom

On 18 Jul 2022, at 11:02, Schlaubischlump @.***> wrote:

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 https://developer.apple.com/documentation/xcode/enabling-developer-mode-on-a-device does not mention a removal.

— Reply to this email directly, view it on GitHub https://github.com/Schlaubischlump/LocationSimulator/issues/128#issuecomment-1187004912, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMGPDUUVBW6PVCDIBIGBZ3VUUTTLANCNFSM53BNSS5A. You are receiving this because you authored the thread.

Schlaubischlump commented 1 year ago

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 ?

tombirch1995 commented 1 year ago

Hi Yes, Back to Error Changing location.

Tom

On 18 Jul 2022, at 11:12, Schlaubischlump @.***> wrote:

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 ?

— Reply to this email directly, view it on GitHub https://github.com/Schlaubischlump/LocationSimulator/issues/128#issuecomment-1187015194, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMGPDVH73UTH4FYJHBJBTLVUUUY5ANCNFSM53BNSS5A. You are receiving this because you authored the thread.

Schlaubischlump commented 1 year ago

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

tombirch1995 commented 1 year ago

I use the developer Beta Tom Sent from my iPhoneOn 18 Jul 2022, at 11:18, Schlaubischlump @.***> wrote: Just for my information: Do you use the public beta or the developer beta ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

Schlaubischlump commented 1 year ago

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/

Schlaubischlump commented 1 year ago

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

numanmughal commented 1 year ago

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.

kpra007 commented 1 year ago

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!

Schlaubischlump commented 1 year ago

Have you activated Developer Mode ?

kpra007 commented 1 year ago

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.

kpra007 commented 1 year ago

Have you activated Developer Mode ?

Thanks. Worked after enabling it.