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

App does not start #13

Closed sapcons closed 4 years ago

sapcons commented 4 years ago

Hello, thanks for the detailed installation guide. I was able to compile the program. However, the app doesn't start with the following error:

Process: LocationSimulator [64045] Path: /Users/USER/Library/Developer/Xcode/DerivedData/LocationSimulator-edkfbvokichndiawkcsertmgvvgg/Build/Products/Release/LocationSimulator.app/Contents/MacOS/LocationSimulator Identifier: com.schlaubi.LocationSimulator Version: 0.1.0 (1) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: LocationSimulator [64045] User ID: 501

Date/Time: 2020-04-15 09:22:05.721 +0200 OS Version: Mac OS X 10.15.4 (19E287) Report Version: 12 Bridge OS Version: 4.4 (17P4281) Anonymous UUID: 8294B0A3-85FD-C294-A4D1-4E35FD1F3AAF

Sleep/Wake UUID: 9E8B8402-DE1D-466A-98B0-0DAC88DA4464

Time Awake Since Boot: 21000 seconds Time Since Wake: 6100 seconds

System Integrity Protection: enabled

Crashed Thread: 0

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: DYLD, [0x5] Code Signature

Application Specific Information: dyld: launch, loading dependent libraries

Dyld Error Message: Library not loaded: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib Referenced from: /Users/USER/Library/Developer/Xcode/DerivedData/LocationSimulator-edkfbvokichndiawkcsertmgvvgg/Build/Products/Release/LocationSimulator.app/Contents/MacOS/LocationSimulator Reason: no suitable image found. Did find: /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib: code signature in (/usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib: stat() failed with errno=1 /usr/local/lib/libimobiledevice.6.dylib: code signature in (/usr/local/lib/libimobiledevice.6.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. /usr/local/Cellar/libimobiledevice/HEAD-cf5a60d_6/lib/libimobiledevice.6.dylib:

Binary Images: 0x100211000 - 0x100247ff7 +com.schlaubi.LocationSimulator (0.1.0 - 1) /Users/USER/Library/Developer/Xcode/DerivedData/LocationSimulator-edkfbvokichndiawkcsertmgvvgg/Build/Products/Release/LocationSimulator.app/Contents/MacOS/LocationSimulator 0x10380e000 - 0x10389feff dyld (750.5) <1F893B81-89A5-3502-8510-95B97B9F730D> /usr/lib/dyld

Model: MacBookPro15,1, BootROM 1037.100.362.0.0 (iBridge: 17.16.14281.0.0,0), 6 processors, 6-Core Intel Core i7, 2,6 GHz, 16 GB, SMC Graphics: kHW_IntelUHDGraphics630Item, Intel UHD Graphics 630, spdisplays_builtin Graphics: kHW_AMDRadeonPro555XItem, Radeon Pro 555X, spdisplays_pcie_device, 4 GB Memory Module: BANK 0/ChannelA-DIMM0, 8 GB, DDR4, 2400 MHz, SK Hynix, - Memory Module: BANK 2/ChannelB-DIMM0, 8 GB, DDR4, 2400 MHz, SK Hynix, - AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x7BF), wl0: Feb 28 2020 15:24:56 version 9.30.357.35.32.5.47 FWID 01-9ce4adf3 Bluetooth: Version 7.0.4f6, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 USB Device: USB 3.1 Bus USB Device: Apple T2 Bus USB Device: Touch Bar Backlight USB Device: Touch Bar Display USB Device: Apple Internal Keyboard / Trackpad USB Device: Headset USB Device: Ambient Light Sensor USB Device: FaceTime HD Camera (Built-in) USB Device: Apple T2 Controller Thunderbolt Bus: MacBook Pro, Apple Inc., 47.4 Thunderbolt Bus: MacBook Pro, Apple Inc., 47.4

Schlaubischlump commented 4 years ago

Hi @sapcons,

It seems like it's some problem with the signing of libimobiledevice / LocationSimulator. Most importantly did you change the signing entry in Xcode (Step 18 in the tutorial) ? If you haven't I'm pretty sure that this causes the error.

Furthermore you could try to remove and reinstall libimobiledevice. And compile again. Also please take a look if the file /usr/local/opt/libimobiledevice/lib/libimobiledevice.6.dylib exists.

As a last resort solution you can disable library validation completely before compiling in Xcode. This might cause other issues with detecting your iPhone inside of LocationSimulator.

To add this entitlement to your app, first enable the Hardened Runtime capability in Xcode, and then under Runtime Exceptions, select Disable Library Validation.

sapcons commented 4 years ago

Problem exists between chair and keyboard :) works perfectly fine after setting it up from scratch. Thanks