# Export iOS and tvOS Xcode archive v4.1.0

**URL:** <https://discuss.bitrise.io/t/export-ios-and-tvos-xcode-archive-v4-1-0/18817>\
**Category:** Changelog\
**Created:** [December 7, 2021, 11:44am UTC](https://discuss.bitrise.io/t/export-ios-and-tvos-xcode-archive-v4-1-0/18817 "2021-12-07T11:44:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [December 7, 2021, 11:44am UTC](https://discuss.bitrise.io/t/export-ios-and-tvos-xcode-archive-v4-1-0/18817/1 "2021-12-07T11:44:51Z")

</div>

### Added support for automatically managing code signing assets

Will choose automatically between xcodebuild-managed and Bitrise-managed automatic signing.  
Requirements for using xcodebuild-managed code signing assets:

- The Xcode project has the _Automatically manage signing_ option turned on.
- The _The minimum days the Provisioning Profile should be valid_ (min\_profile\_validity) Input is left on the default (`0`) value
- Xcode version in use is at least 13.
- API key is used for authentication, not Apple ID.

If the above conditions are not met, will use Bitrise-managed signing.

#### xcodebuild for managing code signing assets with API key

Uses the CI integration support introduced in Xcode 13 to manage app IDs and profiles. ([Distribute apps in Xcode with cloud signing - WWDC21 - Videos - Apple Developer](https://developer.apple.com/videos/play/wwdc2021/10204/))

#### Bitrise-managed code signing assets

Integrates the functionality of the _iOS Auto Provision with App Store Connect API_ and _iOS Auto Provision with Apple ID_ Step.

### Migration

Preserving the valid certificates to the Bitrise **Code Signing** tab is still a requirement.

1. First, set the new _Automatic code signing_ (automatic\_code\_signing) input to `api_key` or `apple_id`.
  - Must use Apple services connection ([About connecting to Apple services](https://devcenter.bitrise.io/en/accounts/connecting-to-services/apple-services-connection.html)), setting Apple authentication via Step inputs is not supported as of now.

2. Configure the _Register test devices_ and _The minimum days the Provisioning Profile should be valid_ inputs, if they were set to a custom value previously.
3. Remove _iOS Auto Provision_ and _Certificate and profile installer_ Steps from the workflow. This is possible after all Xcode Steps that require code signing are migrated. Having multiple Steps managing code signing is not an issue.

Step specific migration notes:

- _iOS Auto Provision with Apple ID_ Step
  - For more reliable code signing, move to API key authentication. (Unless using Enterprise distribution method).

- _Certificate and profile installer_ Step
  - This is possible if migrating to automatically managed code signing assets (Manually installing Provisioning Profiles is unsupported)
  - After removal of _Certificate and profile installer_, only profiles can be removed from the _Code signing_ tab.

(#26 , #27 , #28 , #29 , #30 , #31 , #32)

> **[Release 4.1.0 · bitrise-steplib/steps-export-xcarchive](https://github.com/bitrise-steplib/steps-export-xcarchive/releases/4.1.0)**
>
> Added support for automatically managing code signing assets
> Will choose automatically between xcodebuild-managed and Bitrise-managed automatic signing.
> Requirements for using xcodebuild-managed co...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [March 7, 2022, 11:45am UTC](https://discuss.bitrise.io/t/export-ios-and-tvos-xcode-archive-v4-1-0/18817/2 "2022-03-07T11:45:12Z")

</div>

Closed on March 7, 2022, 11:45am UTC

This topic was automatically closed after 90 days. New replies are no longer allowed.
