Overview
In order to put an iOS app on the the Lab's AppLab website the app must be signed with the Lab Enterprise Distribution Certificate. This page describes how to go about resigning the app without having to rebuild it from source code.
- In order to resign the app you must be on a Mac that has the Lab's "iPhone Distribution: Center for Disease Control" certificate installed.
- Download the Lab's latest Distribution Provisioning Profile, currently called InHouseWIldCard2.
- From the command line unzip the IPA for the app to resign. For example: unzip MyApp.ipa.
- Delete the _CodeSignature subdirectory that is is in Payload/MyApp.app directory. For example: rm -rf Payload/MyApp.app/_CodeSignature/
- Copy the Lab's Distribution Provisioning Profile to the file embedded.mobileprovision in the Payload/MyApp.app directory. For example: cp ~/InHouseWIldCard2.mobileprovision Payload/MyApp.app/embedded.mobileprovision .
- Resign the app using the codesign command, for example: codesign -f -s "iPhone Distribution: Centers for Disease Control" --resource-rules Payload/MyApp.app/ResourceRules.plist Payload/MyApp.app/
- Zip the app back up, for example: zip -qr MyApp.ipa Payload/