In order to get started you need to have installed Xcode (via the Apple App Store for the Mac) and then download iResign from it's github repository;
|iResign on github|
|iResign Xcode Project Download Directory|
You don't need to worry about the contents of the project, just run it and the application will appear;
The second box is to identify the location of your .mobileprovision file (see below for instructions on how to get this and the certificates).
The third box allows you to override the specified company name, we've never needed to use this! Finally is the name of the the Certificate from your Keychain.
Once you've got all these click "ReSign!" and as if by magic you should have a new file in the same directory as the original file except with -resigned appended to it's name.
"Signing failed" Error Message
If you see this error message;
|iResign: Signing failed error message|
Then the problem is that you are missing the Command Line Tools in Xcode. If you start Xcode, go to Preferences, then Downloads and check you have "Command Line Tools" installed;
|Xcode: Preferences > Downloads > Command Line Tools|
Downloading Provisioning Profiles and CertificatesYou can download this by logging into your developer account (https://developer.apple.com);
|Apple Developer Website|
|iOS Developer Program|
|Welcome to the IOS Provisioning Portal|
|Current Distribution Certificate|
|Keychain Access: Add Certificates Dialog|
|New Certificate Details|
Return to the previous dialog and click "Add".
Now you've got your distribution certificate you need to get your provisioning profile. Click on "Provisioning" on the left-hand side;
And you're done, you now have everything you need to resign an application for deployment within an enterprise!