# Build failed on Xcode archive

**URL:** <https://discuss.bitrise.io/t/build-failed-on-xcode-archive/18867>\
**Category:** Builds\
**Tags:** ios\
**Created:** [December 10, 2021, 6:13pm UTC](https://discuss.bitrise.io/t/build-failed-on-xcode-archive/18867 "2021-12-10T18:13:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro.boga](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@pedro.boga](https://discuss.bitrise.io/u/pedro.boga)\
**Post date:** [December 10, 2021, 6:13pm UTC](https://discuss.bitrise.io/t/build-failed-on-xcode-archive/18867/1 "2021-12-10T18:13:07Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

I keep getting the following error in my builds:

```auto
error: exportArchive: exportOptionsPlist error for key "method": expected one of {}, but found development

Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key "method": expected one of {}, but found development" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key "method": expected one of {}, but found development}

```

## Environment:

**Where did the issue happen?**

If on [Bitrise.io](http://Bitrise.io): which stack? If not on [Bitrise.io](http://Bitrise.io): on what operating system? (Plus any other information you can share)

**Which build Step causes the issue and which version of the step?**

Xcode Archive - lastest version

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : NO
- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ : NO
- _Does the issue happen sporadically, or every time?_ : It’s happening every time
- _Does upgrading the build Step to the latest version help?_ : NO
- _When did the issue start?_ : About a week ago

### Local reproduction

_Can it be reproduced on your own Mac/PC by following our [local debug guide](http://discuss.bitrise.io/t/how-to-debug-your-build-locally-it-works-on-my-mac-pc-but-not-on-bitrise-io/392)? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what [bitrise.io](http://bitrise.io) will get when it does a git clone in the clean environment! If possible please note which sections you tried._

### Local reproduction: Linux / Android (docker based) stack builds

_Can it be reproduced by running the build locally, after doing a new git clone of the repository into the `/tmp` directory and running the build from there with the Bitrise CLI ( [Bitrise CLI](https://www.bitrise.io/cli) )? If no, can it be reproduced with Docker (using the same docker images / environment we use on [bitrise.io](http://bitrise.io))? Related guide: [Running your build locally in Docker](http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/) ._

## Build log

```auto
2021-12-10 17:21:55.452 xcodebuild[9481:42311] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/g2/xnd8hpjs50v433gfrybz2nxh0000gn/T/2u-dev_2021-12-10_17-21-55.450.xcdistributionlogs".
2021-12-10 17:21:55.482 xcodebuild[9481:42311] [MT] IDEDistributionMethodManager: -[IDEDistributionMethodManager orderedDistributionMethodsForTask:archive:]: Error = Error Domain=IDEDistributionMethodManagerErrorDomain Code=2 "Unknown Distribution Error" UserInfo={NSLocalizedDescription=Unknown Distribution Error}
error: exportArchive: exportOptionsPlist error for key "method": expected one of {}, but found development

Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key "method": expected one of {}, but found development" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key "method": expected one of {}, but found development}

**EXPORT FAILED**

```

---

<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:** [January 9, 2022, 6:13pm UTC](https://discuss.bitrise.io/t/build-failed-on-xcode-archive/18867/2 "2022-01-09T18:13:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
