Skip to content

Instantly share code, notes, and snippets.

@alldne
Last active March 26, 2020 04:10
Show Gist options
  • Save alldne/9f2f683b3d9733ef9234abd7a2abca61 to your computer and use it in GitHub Desktop.
Save alldne/9f2f683b3d9733ef9234abd7a2abca61 to your computer and use it in GitHub Desktop.
[Fastlane] match and disable automatic code signing
private_lane :match_and_disable_automatic_code_signing do |options|
# https://github.com/fastlane/fastlane/issues/1187#issuecomment-174074360
bundle_identifier = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
match(options)
provisioning_map = lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING]
automatic_code_signing(
use_automatic_signing: false,
profile_name: provisioning_map[bundle_identifier],
targets: ["Your target"],
code_sign_identity: "iPhone Distribution"
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment