libimobiledevice-NET / imobiledevice-net

Updated .NET (C#, VB.NET,...) bindings for libimobiledevice
GNU Lesser General Public License v2.1
4 stars 2 forks source link

iMobileDevice-net not compatible with Mac-M1 #3

Open tbazen opened 1 year ago

tbazen commented 1 year ago

I tried installing iMobileDevice-net on simple console app and tried the example code provided here. The code works as expected on Windows and Mac-Intel. However, on Mac-M1 I am getting the following error:

Unable to load shared library 'imobiledevice' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: 
dlopen(/dotnet/shared/Microsoft.NETCore.App/7.0.3/imobiledevice.dylib, 0x0001): tried: '/dotnet/shared/Microsoft.NETCore.App/7.0.3/imobiledevice.dylib' (no such file), 
'/share/dotnet/shared/Microsoft.NETCore.App/7.0.3/imobiledevice.dylib' (no such file), '/dotnet/shared/Microsoft.NETCore.App/7.0.3/imobiledevice.dylib' (no such file)
dlopen(/TestApp/bin/Debug/net7.0/imobiledevice.dylib, 0x0001): tried: '/TestApp/bin/Debug/net7.0/imobiledevice.dylib' (no such file), 
'/TestApp/TestApp/bin/Debug/net7.0/imobiledevice.dylib' (no such file), '/TestApp/bin/Debug/net7.0/imobiledevice.dylib' (no such file)
dlopen(imobiledevice.dylib, 0x0001): tried: 'imobiledevice.dylib' (no such file), '/OSimobiledevice.dylib' (no such file), '/usr/lib/imobiledevice.dylib' (no such file, not in dyld cache), 
'imobiledevice.dylib' (no such file), 
'/usr/local/lib/imobiledevice.dylib' (no such file), '/usr/lib/imobiledevice.dylib' (no such file, not in dyld cache)
dlopen(/dotnet/shared/Microsoft.NETCore.App/7.0.3/libimobiledevice.dylib, 0x0001): tried: '/dotnet/shared/Microsoft.NETCore.App/7.0.3/libimobiledevice.dylib' (no such file), 
'/share/dotnet/shared/Microsoft.NETCore.App/7.0.3/libimobiledevice.dylib' (no such file), '/dotnet/shared/Microsoft.NETCore.App/7.0.3/libimobiledevice.dylib' (no such file)
dlopen(/TestApp/bin/Debug/net7.0/libimobiledevice.dylib, 0x0001): tried: '/TestApp/bin/Debug/net7.0/libimobiledevice.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), 
'/TestApp/TestApp/bin/Debug/net7.0/libimobiledevice.dylib' (no such file), '/TestApp/bin/Debug/net7.0/libimobiledevice.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
dlopen(libimobiledevice.dylib, 0x0001): tried: 'libimobiledevice.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/OSlibimobiledevice.dylib' (no such file), '/usr/lib/libimobiledevice.dylib' (no such file, not in dyld cache), 
'libimobiledevice.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/usr/local/lib/libimobiledevice.dylib' (no such file), '/usr/lib/libimobiledevice.dylib' (no such file, not in dyld cache)
dlopen(/dotnet/shared/Microsoft.NETCore.App/7.0.3/imobiledevice, 0x0001): tried: '/dotnet/shared/Microsoft.NETCore.App/7.0.3/imobiledevice' (no such file), 
'/share/dotnet/shared/Microsoft.NETCore.App/7.0.3/imobiledevice' (no such file), '/dotnet/shared/Microsoft.NETCore.App/7.0.3/imobiledevice' (no such file)
dlopen(/TestApp/bin/Debug/net7.0/imobiledevice, 0x0001): tried: '/TestApp/bin/Debug/net7.0/imobiledevice' (no such file), 
'/TestApp/TestApp/bin/Debug/net7.0/imobiledevice' (no such file), '/TestApp/bin/Debug/net7.0/imobiledevice' (no such file)
dlopen(imobiledevice, 0x0001): tried: 'imobiledevice' (no such file), '/OSimobiledevice' (no such file), '/usr/lib/imobiledevice' (no such file, not in dyld cache), 'imobiledevice' (no such file), 
'/usr/local/lib/imobiledevice' (no such file), '/usr/lib/imobiledevice' (no such file, not in dyld cache)
dlopen(/dotnet/shared/Microsoft.NETCore.App/7.0.3/libimobiledevice, 0x0001): tried: '/dotnet/shared/Microsoft.NETCore.App/7.0.3/libimobiledevice' (no such file), 
'/share/dotnet/shared/Microsoft.NETCore.App/7.0.3/libimobiledevice' (no such file), '/dotnet/shared/Microsoft.NETCore.App/7.0.3/libimobiledevice' (no such file)
dlopen(/TestApp/bin/Debug/net7.0/libimobiledevice, 0x0001): tried: '/TestApp/bin/Debug/net7.0/libimobiledevice' (no such file), 
'/TestApp/TestApp/bin/Debug/net7.0/libimobiledevice' (no such file), '/TestApp/bin/Debug/net7.0/libimobiledevice' (no such file)
dlopen(libimobiledevice, 0x0001): tried: 'libimobiledevice' (no such file), 
'/OSlibimobiledevice' (no such file), 
'/usr/lib/libimobiledevice' (no such file, not in dyld cache), 'libimobiledevice' (no such file), 
'/usr/local/lib/libimobiledevice' (no such file), '/usr/lib/libimobiledevice' (no such file, not in dyld cache)
waynebonc commented 4 weeks ago

mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')

arm64 is not yet supported.