master131 / iFakeLocation

Simulate locations on iOS devices on Windows, Mac and Ubuntu.
GNU General Public License v3.0
917 stars 170 forks source link

Unable to load shared library 'imobiledevice' on Raspbian GNU/Linux 11 (bullseye) #134

Open ghost opened 1 year ago

ghost commented 1 year ago

I am attempting to use iFakeLocation on my Raspberry Pi running Raspbian GNU/Linux 11 (bullseye) with .NET version 6.0.408. I encountered the following error:

Unable to load shared library 'imobiledevice' or one of its dependencies. 
In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libimobiledevice: cannot read file data: Is a directory

I have tried several methods to resolve this issue, including installing libimobiledevice and libimobiledevice-glue from source, setting the LD_LIBRARY_PATH and LD_DEBUG environment variables, and creating symlinks to the required libraries. However, the issue persists.

Environment details:

Operating System: Raspbian GNU/Linux 11 (bullseye) .NET Version: 6.0.408 Raspberry Pi Model: [Specify your Raspberry Pi model here, e.g., Raspberry Pi 4 Model B]

After installing the libimobiledevice-dev package using sudo apt-get install libimobiledevice-dev, I encountered a different error when running iFakeLocation:

Unable to find entry point 'pinvoke_get_string_length' in shared library 'imobiledevice' after installing libimobiledevice-dev

Also, this solution didn't work: libimobiledevice/issues/1067

I would appreciate any help/assistance from anyone.