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.

 

  1. 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.
  2. Download the Lab's latest Distribution Provisioning Profile, currently called InHouseWIldCard2.
  3. From the command line unzip the IPA for the app to resign. For example: unzip MyApp.ipa.
  4. Delete the _CodeSignature subdirectory that is is in Payload/MyApp.app directory. For example: rm -rf Payload/MyApp.app/_CodeSignature/
  5. 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 .
  6. 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/
  7. Zip the app back up, for example: zip -qr MyApp.ipa Payload/ 
  • No labels