Skip to content

Instantly share code, notes, and snippets.

@bradtheappguy
Created April 4, 2015 07:50
Show Gist options
  • Save bradtheappguy/f0e42946269ed2748e68 to your computer and use it in GitHub Desktop.
Save bradtheappguy/f0e42946269ed2748e68 to your computer and use it in GitHub Desktop.
Create an iOS Plist file using plistbuddy (OSX)
#!/bin/bash
#Creates an iOS OTA (Over the Air) Minifest File
URL="https://sywl.theappguy.guru/relayrunner/0.2.6/RunnerApp_0.2.6ent.ipa"
BUNDLE_ID="com.example.yourbundleid"
BUNDLE_VERSION="0.0.1"
TITLE="Your App Name"
FILE="yourmanifestfile.plist"
/usr/libexec/PlistBuddy -c "add :items array" {FILE}
/usr/libexec/PlistBuddy -c "add :items:0:assets array" {FILE}
/usr/libexec/PlistBuddy -c "add :items:0:assets:0::kind string software-package" {FILE}
/usr/libexec/PlistBuddy -c "add :items:0:assets:0::url string ${URL}" {FILE}
/usr/libexec/PlistBuddy -c "add :items:0:metadata:bindle-identifer string ${BUNDLE_ID}" {FILE}
/usr/libexec/PlistBuddy -c "add :items:0:metadata:bundle-version string ${BUNDLE_VERSION}" {FILE}
/usr/libexec/PlistBuddy -c "add :items:0:metadata:kind string software" {FILE}
/usr/libexec/PlistBuddy -c "add :items:0:metadata:title string ${TITLE}" {FILE}
@twotwo
Copy link

twotwo commented Aug 29, 2017

wrong key string in line 15: bindle-identifer -> bundle-identifier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment