Categorygithub.com/bitrise-steplib/steps-export-xcarchive-mac
modulepackage
0.0.0-20240711073046-7706d605db90
Repository: https://github.com/bitrise-steplib/steps-export-xcarchive-mac.git
Documentation: pkg.go.dev

# README

Export macOS Xcode archive

Step changelog

Export macOS Xcode archive

Description

This step exports an app (.app or .pkg from an existing macOS xcarchive. This is useful when one archive needs to be exported with different distribution methods without rebuilding the archive.

🧩 Get started

Add this step directly to your workflow in the Bitrise Workflow Editor.

You can also run this step directly with Bitrise CLI.

Example

This step exports an app from an existing xcarchive. This is useful when one archive needs to be exported with different distribution methods:

steps:
- certificate-and-profile-installer: {} # Requires certificates and profiles uploaded to Bitrise
- xcode-archive-mac:
    title: Archive and app store export
    inputs:
    - scheme: $BITRISE_SCHEME
    - export_method: app-store
- export-xcarchive-mac:
    title: Developer ID export
    inputs:
    - export_method: developer-id
    # Default input values of the step match the outputs of the previous step
- deploy-to-bitrise-io: {}

⚙️ Configuration

Inputs
KeyDescriptionFlagsDefault
archive_pathPath to the macOS archive (.xcarchive) which should be exported.$BITRISE_MACOS_XCARCHIVE_PATH
export_methodDescribes how Xcode should export the archive.requireddevelopment
upload_bitcodeFor App Store exports, should the package include bitcode?requiredyes
compile_bitcodeFor non-App Store exports, should Xcode re-compile the app from bitcode?requiredyes
team_idThe Developer Portal team to use for this export. Format example: - 1MZX23ABCD4
custom_export_options_plist_contentSpecifies a custom export options plist content that configures archive exporting. If empty, step generates these options based on the embedded provisioning profile, with default values. Auto generated export options available for export methods: - app-store - ad-hoc - enterprise - development If step doesn't find export method based on provisioning profile, development will be use. Call xcodebuild -help for available export options.
use_legacy_exportIf this input is set to yes, the step will use legacy export method.requiredno
legacy_export_provisioning_profile_nameIf this input is empty, xcodebuild will grab one of the matching installed provisining profile.
legacy_export_output_formatSpecify export formatrequiredapp
verbose_logEnable verbose logging?requiredno
Outputs
Environment VariableDescription
BITRISE_APP_PATHThe created macOS .app file's path
BITRISE_PKG_PATHThe created macOS .pkg file's path
BITRISE_IDEDISTRIBUTION_LOGS_PATHPath to the xcdistributionlogs ZIP file

🙋 Contributing

We welcome pull requests and issues against this repository.

For pull requests, work on your changes in a forked repository and use the Bitrise CLI to run step tests locally.

Note: this step's end-to-end tests (defined in e2e/bitrise.yml) are working with secrets which are intentionally not stored in this repo. External contributors won't be able to run those tests. Don't worry, if you open a PR with your contribution, we will help with running tests and make sure that they pass.

Learn more about developing steps:

# Packages

No description provided by the author

# Structs

ConfigsModel ...