iOS Build Failed : Command failed: pod install --repo-update

What platform are you building for?

iOS

What framework are you building with?

Cordova

What is your build ID?

93618c19-207c-4fc8-b563-cf1000f5d56b

What is your error message?

iOS Build Failed: Error: ENOENT: no such file or directory, open ‘/platforms/ios/{myAppName}.xcodeproj/project.pbxproj.

Please describe the issue:

Build Fails.

I have since un-commented platform name=“ios” as below.

<platforms>
  <!-- <platform name="android" /> -->
  <platform name="ios" />
</platforms>

And now get a different error:

[!] Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via pod repo remove master. To suppress this warning please add warn_for_unused_master_specs_repo => false to your Podfile.

Command failed: pod install --repo-update

2025-12-03 14:53:29,371 - Build failed 36d59410-7f0e-43b9-bcb8-5947ef41f465
2025-12-03 14:53:30,616 - Output: Package Current Wanted Latest Location

I have since tried: Build ID: 0257d62b-7961-40bf-8b82-c6e9fa6eec7a

<engine name="ios" spec="7.1.1" />
<plugin name="cordova-plugin-firebasex" spec="^18.0.6">

But that gives this error:

 [!] CocoaPods could not find compatible versions for pod "FirebaseInAppMessaging": In Podfile: Firebase InAppMessaging (= 11.8.0-beta)```

What is your deployment-target preference set to?

Initially

<preference name="deployment-target" value="14.0" />
<preference name="SwiftVersion" value="5.3" />

then I commented them both out but that didn’t seem to have any effect.

I also tried

<engine name="ios" spec="7.1.1" />

I can’t get an iOS to build no matter the config.

No firebase (commented out), and these commented out:

<!-- <engine name="ios" spec="7.1.1" /> -->
<!-- <preference name="SwiftVersion" value="5.3" />   -->       
<!-- <preference name="deployment-target" value="14.0" /> --> 

=

Error: ENOENT: no such file or directory, open '/platforms/ios/{MyAppName}.xcodeproj/project.pbxproj'
2025-12-04 10:29:23,391 - Build failed 2c36cd76-1d4e-4e2f-a5b3-8a38a47c2633

No firebase (commented out), and these settings:

<!-- <engine name="ios" spec="7.1.1" /> -->
<preference name="SwiftVersion" value="5.3" />         
<preference name="deployment-target" value="13.0" /> 

=

Error: ENOENT: no such file or directory, open '/platforms/ios/{MyAppName}.xcodeproj/project.pbxproj'
2025-12-04 10:33:45,297 - Build failed 9e1561b1-0d54-4ea8-ab34-35ccb0d651cd

Not sure if its relevant or not but {MyAppName} has spaces i.e. Error: ENOENT: no such file or directory, open '/platforms/ios/My App Name.xcodeproj/project.pbxproj

Based on your prior builds with firebase, you’ll need to use engine 7.1.1 and also a higher deployment target (at least 13). Please give that a try and let me know how it goes.

Command failed with exit code 65: xcodebuild -workspace….

2025-12-04 17:57:20,458 - error: Multiple commands produce….

2025-12-04 17:57:20,496 - Build failed 48b5e363-81b7-400b-9376-a1a2895c50c0

The problem seems to be the location of your GoogleService-Info.plist. I notice it’s all in your www folder. Please try putting it in the top level folder and try again. Let me know how it goes.

Config:

<!-- iOS Config -->
 <engines>
  <engine name="ios" spec="7.1.1" />
 </engines>
 
<platform name="ios" >
 <!-- <preference name="SwiftVersion" value="5.3" />        -->
 <!-- <preference name="deployment-target" value="13.0" />  -->
  <preference name="WKWebViewOnly" value="true" />
  <feature name="CDVWKWebViewEngine">
    <param name="ios-package" value="CDVWKWebViewEngine" />
  </feature>
  <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
  <resource-file src="www/GoogleService-Info.plist" />
</platform>

<!-- Platforms: Customize as needed -->
<platforms>
  <!-- <platform name="android" /> -->
  <platform name="ios" />
</platforms>

More errors:

Error: ENOENT: no such file or directory, open ‘/platforms/ios/My App Name.xcodeproj/project.pbxproj’at Object.readFileSync (node:fs:441:20)at pbxProject.parseSync (/plugins/cordova-plugin-add-swift-support/node_modules/xcode/lib/pbxProject.js:61:28)at /plugins/cordova-plugin-add-swift-support/src/add-swift-support.js:68:20

2025-12-06 12:53:09,987 - Build failed 965c2ede-8f6f-438e-9fe2-653a6e1c68e2

Out of interest, I tried building a different app which does not use Firebase and that also fails to build.

```Error: ENOENT: no such file or directory, open '/platforms/ios/my app name.xcodeproj/project.pbxproj'
    at Object.readFileSync (node:fs:441:20)
    at pbxProject.parseSync (/plugins/cordova-plugin-add-swift-support/node_modules/xcode/lib/pbxProject.js:61:28)
    at /plugins/cordova-plugin-add-swift-support/src/add-swift-support.js:68:20

engines is not a supported tag. Each engine tag should be a child of the main widget tag, like so:

<widget>
    <engine name="ios" spec="7.1.1" />
</widget>

A great many iOS plugins are not ready for cordova-ios 8.x. If you are seeing errors like this, it’s best to stick to 7.1.1 for now and report the issue to the plugin developer - in this case the plugin is cordova-plugin-add-swift-support.

We endeavor to keep our systems stable, but plugins and engines are constantly updating so unless you pin them at a certain version, problems like this will occur.