Code Re-signing
Upcoming SlideShare
Loading in...5
×
 

Code Re-signing

on

  • 1,597 views

Learn what it is, when you should do it, and what you need to re-sign your app.

Learn what it is, when you should do it, and what you need to re-sign your app.

Statistics

Views

Total Views
1,597
Views on SlideShare
1,597
Embed Views
0

Actions

Likes
1
Downloads
12
Comments
1

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Hello,
    how I can Re-sign a App with Windows?
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Code Re-signing Code Re-signing Presentation Transcript

  • Code Re-signing with Chris (with a K)
  • What is code re-signing? Apple signs all iOS apps in the build process with yourdeveloper signature. Re-signing is the process of popping the app open and inserting a different signature.
  • Why would I want to re-sign my app? 1) in order to distribute through an enterprise account, in order to avoid the app store. 2) your client wants to distribute the app under their apple account.
  • What do I need to do it?Two apple developer certificates. One to build with and one to re-sign with. If you want to circumvent the app store and distribute it yourself, youll need an apple enterprise account.
  • • Build the app as normal under your usual apple developer certificate• If youre going to provision it for push notifications, do so as normal• From the re-signing account, youll need a .p12• The p12 contains the keychain certificate and private key. Double-click it to add it to your keychain. • if youre re-signing from your own enterprise account, you should already have the p12 on your keychain • to create a p12, go to Keychain Access, then right-click on the certificate and export. Choose to export it as p12.
  • • If youre making an app for a client who wants push provisioning,theyll need to provision the app for push with their own pushaccount• At this point, wed finish the process by running a little python scriptwe made that does the heavy lifting.•the four arguments are: {full_path_to_ipa} {"certificate name"}{bundle id} {full_path_to_mobileprovision_file}
  • The script does the following: • unzips the ipa • alters the info.plist by swapping out the bundle id from the original mobileprovision profile with the bundle id of the new mobile provision profile (com.crowdcompass.com -> com.blogher.com) • copies new mobileprovision file into app, replacing the embedded.mobileprovision • resigns app with the code • repackages with xcrun
  • Thanks.kris@crowdcompass.com