resign

Codesign an existing ipa file

resign
Supported platforms ios
Author @lmirosevic

2 Examples

resign(
  ipa: "path/to/ipa", # can omit if using the `ipa` action
  signing_identity: "iPhone Distribution: Luka Mirosevic (0123456789)",
  provisioning_profile: "path/to/profile", # can omit if using the _sigh_ action
)
# You may provide multiple provisioning profiles if the application contains nested
# applications or app extensions, which need their own provisioning profile.
# You can do so by passing an array of provisiong profile strings or a hash
# that associates provisioning profile values to bundle identifier keys.
resign(
  ipa: "path/to/ipa", # can omit if using the `ipa` action
  signing_identity: "iPhone Distribution: Luka Mirosevic (0123456789)",
  provisioning_profile: {
    "com.example.awesome-app" => "path/to/profile",
    "com.example.awesome-app.app-extension" => "path/to/app-extension/profile"
  }
)

Parameters

Key Description Default
ipa Path to the ipa file to resign. Optional if you use the gym or xcodebuild action *
signing_identity Code signing identity to use. e.g. iPhone Distribution: Luka Mirosevic (0123456789)
entitlements Path to the entitlement file to use, e.g. myApp/MyApp.entitlements
provisioning_profile Path to your provisioning_profile. Optional if you use sigh *
version Version number to force resigned ipa to use. Updates both CFBundleShortVersionString and CFBundleVersion values in Info.plist. Applies for main app and all nested apps or extensions
display_name Display name to force resigned ipa to use
short_version Short version string to force resigned ipa to use (CFBundleShortVersionString)
bundle_version Bundle version to force resigned ipa to use (CFBundleVersion)
bundle_id Set new bundle ID during resign (CFBundleIdentifier)
use_app_entitlements Extract app bundle codesigning entitlements and combine with entitlements from new provisionin profile
keychain_path Provide a path to a keychain file that should be used by /usr/bin/codesign

* = default value is dependent on the user's system


To show the documentation in your terminal, run

fastlane action resign

View source code


Back to actions