Skip to content

Instantly share code, notes, and snippets.

@jamesu
Created June 24, 2010 10:43
Show Gist options
  • Save jamesu/451303 to your computer and use it in GitHub Desktop.
Save jamesu/451303 to your computer and use it in GitHub Desktop.
#! /bin/bash
# Re-signs apps. Useful if you want to add users to an ad-hoc iPhone app without recompiling in XCode.
# e.g. signapp.sh Mail
#
# NOTE: be sure to replace embedded.mobileprovision in the app!
#
export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform\
/Developer/usr/bin/codesign_allocate
codesign -f -s "iPhone Distribution" --entitlements $1.app/Entitlements.plist --resource-rules $1.app/ResourceRules.plist $1.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment