Lane: sign
Description
This line is a custom wrapper above get_provisioning_profileopen in new window (old sighopen in new window) from fastlane
with the most usable parameters.
sign
can create, renew, download and repair provisioning profiles (with one command). It supports App Store, Ad Hoc, Development and Enterprise profiles and supports nice features, like auto-adding all test devices.
Available
fastlane_configurations ~> 1.0.0
Overview
lane :sign do |options|
bundle_id = options[:bundle_id] || @bundle_id
adhoc = options[:adhoc]
development = options[:development]
cert_id = options[:cert_id] || @cert_id
provisioning_name = options[:provisioning_name]
force = options[:force] || false
...
end
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
Usage
Update your Fastfile to contain the following code:
sign(
adhoc: false
)
1
2
3
2
3
Lane Parameters
Key | Description |
---|---|
bundle_id | The bundle identifier of your app |
adhoc | Setting this flag will generate AdHoc profiles instead of App Store Profiles |
development | Renew the development certificate instead of the production one |
cert_id | The ID of the code signing certificate to use (e.g. SWU45WHDKC for ManyPeople) |
provisioning_name | The name of the profile that is used on the Apple Developer Portal |
force | Renew provisioning profiles regardless of its state - to automatically add all devices for ad hoc profiles. Defaults to false |
This properties are optional. You must set just one of this - adhoc
which setting this flag will generate AdHoc profiles instead of App Store.
@bundle_id
and@cert_id
- global variable from your Fastfile