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

Trying to compile but... #2

Closed Profited closed 4 years ago

Profited commented 4 years ago
ld: library not found for -lusbmuxd.4
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Schlaubischlump commented 4 years ago

Did you try the tip in the Readme: You might need a new version of libusbmuxd for libimobiledevice to install. Use brew install usbmuxd --HEAD to install the latest version.

You might need to uninstall your current version, before installing the lasted. Let me know if this works. If you still have problems and you just want to use the program, I can upload a precompiled release version.

Profited commented 4 years ago

I've done

brew install usbmuxd --HEAD

and it installed it successfully following your guide. I've changed the library paths of libimobiledevice and such.

The weird thing is that it was installed before compiling the app and it still gave me that error.

Schlaubischlump commented 4 years ago

Did you try to remove the library from Build Phases -> Link Binary with Libraries and add them again ? Homebrews path to the library does include the Head you checked out. So for example it might be: /usr/local/Cellar/usbmuxd/HEAD-c75605d_1/lib/libusbmuxd.4.dylib. If you checked out a different Head your path in Xcode will be different, so Xcode won't find the library. If you remove and add the library again in Build Phases -> Link Binary with Libraries, you can be sure that Xcode does find the library.

You might encounter the same error for libimobiledevice, after the error for usbmuxd is gone. In this case just remove libimobiledevice as well from your Build Phases -> Link Binary with Libraries and add it again.

Profited commented 4 years ago

Thank you so much for the help, it compiles correctly now.