# Error: Error code 1 for command: xcodebuild with args

**URL:** <https://forum.ionicframework.com/t/error-error-code-1-for-command-xcodebuild-with-args/208143>\
**Category:** ionic-v3\
**Created:** [April 14, 2021, 1:40pm UTC](https://forum.ionicframework.com/t/error-error-code-1-for-command-xcodebuild-with-args/208143 "2021-04-14T13:40:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Datalux](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@Datalux](https://forum.ionicframework.com/u/Datalux)\
**Post date:** [April 14, 2021, 1:40pm UTC](https://forum.ionicframework.com/t/error-error-code-1-for-command-xcodebuild-with-args/208143/1 "2021-04-14T13:40:54Z")

</div>

When I try to execute `ionic cordova run ios` or `ionic cordova emulate ios` commands exit with the message:

Error: Error code 1 for command: xcodebuild with args: -xcconfig,/app-path/platforms/ios/cordova/build-debug.xcconfig,-project,MyApp.xcodeproj,ARCHS=i386,-target,MyApp,-configuration,Debug,-sdk,iphonesimulator,build,VALID\_ARCHS=i386,CONFIGURATION\_BUILD\_DIR=/app-path/platforms/ios/build/emulator,SHARED\_PRECOMPS\_DIR=/app-path/platforms/ios/build/sharedpch  
[ERROR] An error occurred while running subprocess cordova.

Anyone can help me?

Thanks in advance.
