0.1.0 • Published 10 years ago
fastlane-sigh v0.1.0
fastlane-sigh
node wrapper for Ruby Fastlane-Sigh CLI
example
var sigh = require('fastlane-sigh')
sigh({
identifier : 'appIdentifier',
user : 'firstname@email.com',
development: true,
path : '/Users/username/appname appname.xcodeproj'
}, (err, result) => {
console.log(`STDOUT:\n${result.stdout}`)
console.log(`STDERR:\n${result.stderr}`)
if (err) {
if (err.killed) console.error(`Terminated: ${err.signal}`)
if (err.code) console.error(`Exit Code: ${err.code}`)
console.error(err.message)
}
})api
var sigh = require('fastlane-sigh')sigh(options,callback)
Accepts options as an object; see tables below for a list of both runtime options, and sigh options.
| Sigh Options | Example | Description | Command Executed | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| identifier | { identifier: bundleIndentifier } | sets bundle identifier | -a {bundleIndentifier} | ||||||||||
| output | { output: outputDirectoryPath } | generates the profile in a specific directory | -o {outputDirectoryPath} | user (string) | { user:username } | sets username | -u {user} | profile:'adhoc' | { profile:'adhoc' } | generate an Ad Hoc profile instead of an App Store profile | --adhoc | ||
| profile:'development' | { profile:'development' } | generate an development profile instead of an App Store profile | --development | ||||||||||
| downloadAll (boolean) | { downloadAll:true } | downloads all provisioning profiles | --download_all | ||||||||||
| force (boolean) | { force:true } | force the provisioning profile to be renewed regardless of its state. Provides a profile with the maximum lifetime and also adds all available devices to this profile. | --force | ||||||||||
| repair (boolean) | { repair:true } | automatically repair all your existing provisioning profiles which are expired or just invalid | repair | ||||||||||
| skipInstall (boolean) | { skipInstall:true } | By default, the certificate will be added on your local machine. Setting this flag will skip this action | --skip_install | ||||||||||
| skipCertificateVerification (boolean) | { skipCertificateVerification:true } | Skips the verification of the certificates for every existing profiles. This will make sure the provisioning profile can be used on the local machine | --skip_certificate_verification | ||||||||||
| skipFetchProfiles (boolean) | { skipFetchProfiles:true } | Skips the verification of existing profiles which is useful if you have thousands of profiles | --skip_fetch_profiles | ||||||||||
| teamId(string) | { teamId: 'ekgo' } | The ID of your team if you're in multiple teams | --team_id {teamId} | ||||||||||
| teamName(string) | { teamName: 'rockstars' } | The name of your team if you're in multiple teams | --team_name {teamName} | ||||||||||
| provisioningName(string) | { provisioningName: 'companyA' } | The name of the profile that is used on the Apple Developer Portal | --provisioning_name {provisioningName} | ||||||||||
| ignoreProfilesWithDifferentName (boolean) | { ignoreProfilesWithDifferentName:true } | Use in combination with provisioningName - when true only profiles matching this exact name will be downloaded | --ignore_profiles_with_different_name | ||||||||||
| certId(string) | { certId: '8ADL6LVAA' } | The ID of the code signing certificate to use (e.g. 78ADL6LVAA) | --cert_id {certId} | ||||||||||
| certOwnerName(string) | { certOwnerName: "Felix Krause" } | The certificate name to use for new profiles, or to renew with. (e.g. "Felix Krause") | --cert_owner_name {certOwnerName} | ||||||||||
| filename | { filename: filename } | Filename to use for the generated provisioning profile (must include .mobileprovision) | --filename {filename} |
| Runtime Options | Example | Description |
|---|---|---|
| timeout (number) | { timeout:0 } | specify when to exit execution in case of error |
| password (string) | {password:''} | app store password for signing |
| path (string) | {path:'/'} | path of directory where sigh executes |
install
With npm do:
npm install --save fastlane-sightesting
npm test
coverage
npm run view-cover
This will output a textual coverage report.
npm run open-cover
This will open an HTML coverage report in the default browser.

