# BUILD SUCCEEDED, then \[ERROR\] An error occurred while running cordova build ios (exit code 1)

**URL:** <https://forum.ionicframework.com/t/build-succeeded-then-error-an-error-occurred-while-running-cordova-build-ios-exit-code-1/142886>\
**Category:** ionic-v3\
**Created:** [September 26, 2018, 1:43pm UTC](https://forum.ionicframework.com/t/build-succeeded-then-error-an-error-occurred-while-running-cordova-build-ios-exit-code-1/142886 "2018-09-26T13:43:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpeary](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bpeary/32/116153_2.png) [@bpeary](https://forum.ionicframework.com/u/bpeary)\
**Post date:** [September 26, 2018, 1:43pm UTC](https://forum.ionicframework.com/t/build-succeeded-then-error-an-error-occurred-while-running-cordova-build-ios-exit-code-1/142886/1 "2018-09-26T13:43:11Z")

</div>

Trying to `ionic cordova build ios --prod` and I get

```auto
**BUILD SUCCEEDED**

[ERROR] An error occurred while running cordova build ios (exit code 1).

```

It is xcode 10, which is problematic, but I have followed the directions to deal with that here: [https://github.com/apache/cordova-ios/issues/407](https://github.com/apache/cordova-ios/issues/407)

The only thing I think it could be is maybe this error:  
`:-1: /Users/b_d_m_p/path/APP/platforms/ios/cordova/build-debug.xcconfig:34: could not find included file 'Pods/Target Support Files/Pods-myapp/Pods-myapp.debug.xcconfig' in search paths (in target 'myapp')`

(I was getting that error with the same command until I followed the xcode 10 instructions.)

I can’t find anything on either of the errors.  
How can I troubleshoot this?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:16pm UTC](https://forum.ionicframework.com/t/build-succeeded-then-error-an-error-occurred-while-running-cordova-build-ios-exit-code-1/142886/2 "2021-07-19T21:16:01Z")

</div>

Closed on July 19, 2021, 9:16pm UTC


