Forked from benvium/installMobileProvisionFile.sh
Last active
August 29, 2015 13:56
-
-
Save YauzZ/9341044 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# 2012 - Ben Clayton (benvium). Calvium Ltd | |
# Found at https://gist.github.com/2568707 | |
# | |
# This script installs a .mobileprovision file without using Xcode. Unlike Xcode, it'll | |
# work over SSH. | |
# | |
# Requires Mac OS X (I'm using 10.7 and Xcode 4.3.2) | |
# | |
# IMPORTANT NOTE: You need to download and install the mpParse executable from http://idevblog.info/mobileprovision-files-structure-and-reading | |
# and place it in the same folder as this script for this to work. | |
# | |
# Usage installMobileProvisionFile.sh path/to/foobar.mobileprovision | |
if [ ! $# == 1 ]; then | |
echo "Usage: $0 (path/to/mobileprovision)" | |
exit | |
fi | |
mp=$1 | |
uuid=`grep -aA1 UUID ${mp} | grep -o "[-A-Z0-9]\{36\}"` | |
echo "Found UUID $uuid" | |
output="~/Library/MobileDevice/Provisioning Profiles/$uuid.mobileprovision" | |
echo "copying to $output.." | |
cp "${mp}" "$output" | |
echo "done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment