The idevicelocation tool allows to set the location on iOS Devices. It makes use of the fabulous libimobiledevice library that allows communication with iOS devices.
Development Packages of:
libimobiledevice
libusbmuxd
libplist
openssl
Software:
usbmuxd
make
autoheader
automake
autoconf
libtool
pkg-config
gcc
To compile run:
./autogen.sh
make
sudo make install
$ idevicelocation [OPTIONS] LATITUDE LONGITUDE
Set the location passing two arguments, latitude and longitude:
$ idevicelocation 48.856614 2.3522219000000177
Passing negative values :
$ idevicelocation 77.432332 -- -7.008373564
$ idevicelocation -- -77.432332 -7.008373564
Stopping Location Simulation:
$ idevicelocation --stop
Options:
-d enable connection debug messages.
-u specify device UDID.
-h help.
-s stop location simulation on device.
Mac Users:
If the compiler cant find the openssl libs try this:
export PATH=/usr/local/opt/openssl/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$LD_LIBRARY_PATH
export CPATH=/usr/local/opt/openssl/include:$CPATH
export LIBRARY_PATH=/usr/local/opt/openssl/lib:$LIBRARY_PATH
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig