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.4k stars 184 forks source link

Build error #16

Closed bilalghouri closed 4 years ago

bilalghouri commented 4 years ago

Undefined symbols for architecture x86_64: "_idevice_new_with_options", referenced from: _developerImageIsMountedForDevice in deviceimagemounter.o _mountImageForDevice in deviceimagemounter.o _pairDevice in devicepair.o _resetLocation in devicelocation.o _sendLocation in devicelocation.o _deviceProductVersion in deviceinfo.o _deviceName in deviceinfo.o ... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I've linked the latest libraries as well, used brew install --HEAD

Schlaubischlump commented 4 years ago

There is something wrong with your libimobiledevice headers. If have seen this error before if your libimobiledevice version is outdated. Maybe you installed the correct version with homebrew, but included the wrong headers?

Edit: Maybe the headers in libimobiledevice changed. In this case it wouldn‘t be your fault. I will check later and update this comment.

Edit2: I used the most recent libimobiledevice version and it is working. That means there is something wrong with your setup.

To get the latest libimobiledevice working you need to checkout the latest HEAD for libplist and libusbmuxd. I checked out the following HEADs:

libplist: HEAD-66d2bb6 libusbmuxd: HEAD-5364a1b libimobiledevice: HEAD-4331c3c_6

Make sure that your configuration looks like this:

Header search path:

Screenshot 2020-05-26 at 12 04 13

Library search path:

Screenshot 2020-05-26 at 12 04 20

Linked libraries:

Screenshot 2020-05-26 at 12 07 14
Schlaubischlump commented 4 years ago

A new version of libimobiledevice is available on homebrew. If you install the latest version and download the prebuild binary from the github releases it should work.