# iOS build error: 'Could not find Xcode project' and 'modify\_cap\_ios\_config'

**URL:** <https://forum.ionicframework.com/t/ios-build-error-could-not-find-xcode-project-and-modify-cap-ios-config/189708>\
**Category:** Appflow\
**Created:** [May 19, 2020, 3:36pm UTC](https://forum.ionicframework.com/t/ios-build-error-could-not-find-xcode-project-and-modify-cap-ios-config/189708 "2020-05-19T15:36:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![haullex](https://avatars.discourse-cdn.com/v4/letter/h/0ea827/32.png) [@haullex](https://forum.ionicframework.com/u/haullex)\
**Post date:** [May 19, 2020, 3:36pm UTC](https://forum.ionicframework.com/t/ios-build-error-could-not-find-xcode-project-and-modify-cap-ios-config/189708/1 "2020-05-19T15:36:28Z")

</div>

## I can’t finish the build on ionic app flow. However the build itself succeeds, but generating ipa is failing.

[15:23:30]: — Step: modify\_cap\_ios\_config —  
[15:23:30]: -----------------------------------  
[15:23:30]: Error setting value ‘/Users/ionic/builds/project-0/ios/App/App.xcodeproj’ for option ‘xcodeproj’  
[15:23:30]: You passed invalid parameters to ‘modify\_cap\_ios\_config’.  
[15:23:30]: Check out the error below and available options by running `fastlane action modify_cap_ios_config`

Also at the end of log I am getting:  
[!] Could not find Xcode project

---

<div class="post-metadata">

**Author:** ![epzee](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/epzee/32/132656_2.png) [@epzee](https://forum.ionicframework.com/u/epzee)\
**Post date:** [June 8, 2020, 3:09pm UTC](https://forum.ionicframework.com/t/ios-build-error-could-not-find-xcode-project-and-modify-cap-ios-config/189708/2 "2020-06-08T15:09:54Z")

</div>

did you find a solution?

---

<div class="post-metadata">

**Author:** ![tomasbalaguer](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@tomasbalaguer](https://forum.ionicframework.com/u/tomasbalaguer)\
**Post date:** [June 9, 2020, 8:04pm UTC](https://forum.ionicframework.com/t/ios-build-error-could-not-find-xcode-project-and-modify-cap-ios-config/189708/3 "2020-06-09T20:04:43Z")

</div>

Any solution for this???

---

<div class="post-metadata">

**Author:** ![nautalert](https://avatars.discourse-cdn.com/v4/letter/n/ecccb3/32.png) [@nautalert](https://forum.ionicframework.com/u/nautalert)\
**Post date:** [June 10, 2020, 1:35pm UTC](https://forum.ionicframework.com/t/ios-build-error-could-not-find-xcode-project-and-modify-cap-ios-config/189708/4 "2020-06-10T13:35:47Z")

</div>

I have the same problem.

---

<div class="post-metadata">

**Author:** ![development-wezeo](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@development-wezeo](https://forum.ionicframework.com/u/development-wezeo)\
**Post date:** [July 1, 2020, 12:24pm UTC](https://forum.ionicframework.com/t/ios-build-error-could-not-find-xcode-project-and-modify-cap-ios-config/189708/5 "2020-07-01T12:24:16Z")

</div>

I have same problem and cant find any solution for this

```auto
[12:04:10]: ▸ Ionic:
[12:04:10]: ▸ Ionic CLI : 5.4.16
[12:04:10]: ▸ Ionic Framework : @ionic/vue 0.0.9
[12:04:10]: ▸ Capacitor:
[12:04:10]: ▸ Capacitor CLI : 2.2.0
[12:04:10]: ▸ @capacitor/core : 2.2.0
[12:04:10]: ▸ Utility:
[12:04:10]: ▸ cordova-res : 0.14.1
[12:04:10]: ▸ native-run : not installed
[12:04:10]: ▸ System:
[12:04:10]: ▸ NodeJS : v12.17.0 (/usr/local/Cellar/node@12/12.17.0/bin/node)
[12:04:10]: ▸ npm : 6.14.4
[12:04:10]: ▸ OS : macOS Mojave
[12:04:10]: Generating app manifest...
[12:04:10]: $ ionic deploy manifest
[12:04:11]: ▸ [OK] Appflow Deploy manifest written to ./dist/pro-manifest.json!
[12:04:11]: Error setting value '/Users/ionic/builds/[]/app/ios/App/App.xcodeproj' for option 'xcodeproj'
[12:04:11]: You passed invalid parameters to 'modify_cap_ios_config'.
[12:04:11]: Check out the error below and available options by running `fastlane action modify_cap_ios_config`

```

---

<div class="post-metadata">

**Author:** ![development-wezeo](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@development-wezeo](https://forum.ionicframework.com/u/development-wezeo)\
**Post date:** [July 2, 2020, 8:43am UTC](https://forum.ionicframework.com/t/ios-build-error-could-not-find-xcode-project-and-modify-cap-ios-config/189708/6 "2020-07-02T08:43:18Z")

</div>

Solution that worked for me:

Make sure your platform directory is not included in your `.gitignore`  
run `npm run build`  
run `npx cap sync ios`  
push a commit and try a build from that commit

Hope it helps!

---

<div class="post-metadata">

**Author:** ![Jongbonga](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jongbonga/32/148404_2.png) [@Jongbonga](https://forum.ionicframework.com/u/Jongbonga)\
**Post date:** [April 28, 2021, 5:40pm UTC](https://forum.ionicframework.com/t/ios-build-error-could-not-find-xcode-project-and-modify-cap-ios-config/189708/7 "2021-04-28T17:40:43Z")

</div>

Hi @development-wezeo

The doc advise [not to commit the platform folders](https://ionic.io/docs/appflow/package/builds)

---

<div class="post-metadata">

**Author:** ![midiasedu](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@midiasedu](https://forum.ionicframework.com/u/midiasedu)\
**Post date:** [June 4, 2021, 12:20pm UTC](https://forum.ionicframework.com/t/ios-build-error-could-not-find-xcode-project-and-modify-cap-ios-config/189708/8 "2021-06-04T12:20:37Z")

</div>

I am using capacitor and to make it work I had to run “npx cap sync ios”, like @development-wezeo said, and add ios generated folder to commit (even though the documentation says not to).  
After that it worked.

---

<div class="post-metadata">

**Author:** ![salei](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@salei](https://forum.ionicframework.com/u/salei)\
**Post date:** [November 8, 2021, 12:58pm UTC](https://forum.ionicframework.com/t/ios-build-error-could-not-find-xcode-project-and-modify-cap-ios-config/189708/9 "2021-11-08T12:58:14Z")

</div>

Any update on this issue?
