Installing an .ipa on your iOS device from command line in OSX or Linux

Devops

OSX

Please note that this will not work with iOS App Store Deployment builds. For those, you need to use Testflight

A common task you might want to perform before deploying your application is simply verifying if your build (.ipa) runs well on a device. Unfortunately, Apple makes it extremely hard to do so and impossible if you dare use Linux OS.

But there exist a command line tool available part of the amazing libimobiledevice project. And the best part is that this tool is also available on linux.

To install it simply use the appropriate package:

# For OSX
brew install libimobiledevice  
brew install ideviceinstaller  
# For Ubuntu
sudo apt-get install libimobiledevice  
sudo apt-get install ideviceinstaller  

Then plugin your device and run the following to get your app installed:

ideviceinstaller -i <Path_to_your_ipa>  

I also really advise you to check out libimobiledevice.org for more of those nifty tools.