Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

iMobileDevice-net not compatible with Mac-M1 #206

Open
tbazen opened this issue Mar 2, 2023 · 0 comments
Open

iMobileDevice-net not compatible with Mac-M1 #206

tbazen opened this issue Mar 2, 2023 · 0 comments

Comments

@tbazen
Copy link

tbazen commented Mar 2, 2023

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant