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

add support for macOS #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

add support for macOS #12

wants to merge 3 commits into from

Conversation

CyrilSLi
Copy link

In the context of this program macOS works the same way as Linux, the only change needed is the filepath to the imobiledevice library.

rvi_capture.py Outdated
@@ -19,10 +20,15 @@ def load_cdll():
except OSError:
pass
raise OSError('libimobiledevice not found!')
elif sys.platform == 'darwin':
try:
return ctypes.CDLL(shutil.which('ideviceinfo'))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to pass the path to the libimobileidevice dylib instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added code to try to find the dylib, compatible with Homebrew and MacPorts (the official ways to install libimobiledevice), with which(ideviceinfo) being a fallback. Nonetheless, using ideviceinfo doesn't seem to be different than using the dylib.

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.

None yet

2 participants