# Xcodebuild command error - not on local machine, but on CircleCI - Scheme MyApp is not currently configured for the archive action

**URL:** <https://discuss.circleci.com/t/xcodebuild-command-error-not-on-local-machine-but-on-circleci-scheme-myapp-is-not-currently-configured-for-the-archive-action/12134>\
**Category:** Build Environment\
**Created:** [April 23, 2017, 1:23am UTC](https://discuss.circleci.com/t/xcodebuild-command-error-not-on-local-machine-but-on-circleci-scheme-myapp-is-not-currently-configured-for-the-archive-action/12134 "2017-04-23T01:23:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![innovationdevelopmen](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@innovationdevelopmen](https://discuss.circleci.com/u/innovationdevelopmen)\
**Post date:** [April 23, 2017, 1:23am UTC](https://discuss.circleci.com/t/xcodebuild-command-error-not-on-local-machine-but-on-circleci-scheme-myapp-is-not-currently-configured-for-the-archive-action/12134/1 "2017-04-23T01:23:36Z")

</div>

The Xcode project builds on commandline on my own machine. But not on CircleCI.  
The error is (Full error details along with `xcodebuild` command is at the end of this Topic.)  
`xcodebuild: error: Scheme MyApp is not currently configured for the archive action.`  
**I do not have any duplicated Scheme in your project or workspace**

**_Command and error details_**  
xcodebuild -workspace MyApp.xcworkspace -scheme MyApp -sdk iphoneos -configuration “Ad Hoc Distribution” archive -archivePath ~/build/MyApp.xcarchive  
User defaults from command line:  
IDEArchivePathOverride = /Users/distiller/build/MyApp.xcarchive  
Build settings from command line:  
SDKROOT = iphoneos10.2  
xcodebuild: error: Scheme MyApp is not currently configured for the archive action.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:39am UTC](https://discuss.circleci.com/t/xcodebuild-command-error-not-on-local-machine-but-on-circleci-scheme-myapp-is-not-currently-configured-for-the-archive-action/12134/2 "2018-06-18T11:39:25Z")

</div>


