How to use:
Once the gem is installed you can use the command ios_app_install with the following options:
-
-u, --uninstall uninstall an app (requires -b)
-
-r, --reinstall uninstall an app and then install an app (requires -b for uninstall and -p for install)
-
-i, --isinstalled check if the app is installed or not (requires -b)
-
-d, --device the id of the device to connect to (use all devices if not set?)
-
-p, --path the path to the app bundle (.ipa) which should be installed
-
-b, --bundle specify bundle id
-
use only -p or -p and -d to install an app
(The device should be connected to your Mac via USB)
Original source code
This is a heavily chopped down and slightly changed version of ios-deploy, focused on the functionality to install and uninstall apps It was created because uninstalling was not available as single function in ios-deploy and I didn't need the other functionalities
Description from mokagios ios-deploy:
This is a mirror of the ios-deploy project from the PhoneGap community. All the credit, goes to them.
ios-deploy is distributed via npm, but iOS developer, as far as my experience goes, mainly use RubyGems, because of CocoaPods being distributed through it.
For this reason an iOS project probably already has a Podfile and a Gemfile, and having to add a package.json for the sake of one tool seemed too much.
If you're thinking "this kind of stuff feel wrong...", well you're right! It is wrong, it's an hack of matrioscas, but it solves a need I had.
You can read more on how this came up on this tech-journal post, and feel free to tweet me @mokagio