Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue with using the Screenshot service on a Mac. #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

richard-stowe
Copy link

Prior to this fix getting screenshots from devices would result in the following exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'imobiledevice-sdk': dlopen(libimobiledevice-sdk.dylib, 9): image not found
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:169)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:242)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:205)
at org.libimobiledevice.ios.driver.binding.raw.ImobiledeviceSdkLibrary.(ImobiledeviceSdkLibrary.java:25)
at org.libimobiledevice.ios.driver.binding.services.IOSDevice.(IOSDevice.java:44)
at org.libimobiledevice.ios.driver.binding.services.DeviceService.get(DeviceService.java:37)
at IosDriverTest.runTest(IosDriverTest.java:66)
at IosDriverTest.main(IosDriverTest.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

Prior to this fix setting screenshots from devices would result in the following exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'imobiledevice-sdk': dlopen(libimobiledevice-sdk.dylib, 9): image not found
	at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:169)
	at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:242)
	at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:205)
	at org.libimobiledevice.ios.driver.binding.raw.ImobiledeviceSdkLibrary.<clinit>(ImobiledeviceSdkLibrary.java:25)
	at org.libimobiledevice.ios.driver.binding.services.IOSDevice.<init>(IOSDevice.java:44)
	at org.libimobiledevice.ios.driver.binding.services.DeviceService.get(DeviceService.java:37)
	at IosDriverTest.runTest(IosDriverTest.java:66)
	at IosDriverTest.main(IosDriverTest.java:23)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant