Last active
April 20, 2024 01:52
-
-
Save soheilbm/32d67c3aaad30cf57300d0ad4fd4775c to your computer and use it in GitHub Desktop.
Install libimobiledevice on OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install libimobiledevice on Mac OS X | |
So you'd like to manage your iOS devices by command line? | |
You can use libimobiledevice tools for that. | |
Easy on Linux. Let's see how it is on Mac OS X. | |
You'll need to: | |
1. install Xcode | |
2. start Xcode and agree to it's license | |
3. install Xcode command line tools (Start Xcode, Go to Preferences -> Downloads tab) | |
4. install homebrew by this command (sudo password will be prompted) | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
5. run following | |
brew install -v --fresh automake autoconf libtool wget libimobiledevice | |
brew install -v --HEAD --fresh --build-from-source ideviceinstaller | |
6. ready to go | |
In OSX Sierra: | |
brew uninstall ideviceinstaller -g | |
brew uninstall libimobiledevice -g | |
brew install --HEAD libimobiledevice -g | |
brew install ideviceinstaller -g | |
sudo rm -rf /var/db/lockdown/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get
Error: invalid option: --fresh
on both brew commands ... when removing this option, the compiling starts but fails.I use an M2 silicon MacBook Mac OS X 13.3.1 (a) with Rosetta 2 installed.
The reason I am trying my own compilation is because version 1.3.0 (which is published via homebrew as a binary) doesn't work with current iOS / Mac OS as per libimobiledevice/libimobiledevice#1123