14
Views
3
Comments
Solved
No such file or directory, open 'source/platforms/ios/Cordova/Cordova-Info.plist'
Application Type
Mobile

I create a sample application with empty screen. When I tried to generate the iOS binary, My build generation is getting failed with the below error.

Error: ENOENT: no such file or directory, open 'source/platforms/ios/Cordova/Cordova-Info.plist'

The same App Identifier, P12 certificate and Provisioning profile is working fine in the other application.

Solution

Hi Ruwin,
Thanks for your comments, I found the root cause of this issue. I used reserved word "Cordova" as the application name. After changing the name of the application it works fine.

You're getting an error when trying to make an iOS app, and it says a specific file is missing. This file is needed for your app to work properly.

Here are some steps to try and fix the problem:

1. Check File Location: Make sure the missing file is in the right place in your app's folder.

2. Rebuild iOS: Sometimes, deleting and adding the iOS part of your app again can help. You can do this using a couple of commands.

3. Check Cordova Version: Make sure you're using the right version of Cordova for your app. If it's old, consider updating it.

4. Check App Settings: Look at your app's settings file and make sure everything is correct, especially for iOS.

5. Check Plugins: Make sure the extra pieces you added to your app are up-to-date and work with your Cordova and iOS versions.

6. App Structure: Make sure your app's folders and files are organized correctly.

8. CocoaPods: If your app uses special extras that need CocoaPods, make sure you have it and run a command in the iOS folder.

9. Clean and Build: Try cleaning up your app and building it again.

10. Update Xcode and macOS: Make sure your Apple software is up to date.

11. Debugging: If none of this works, you might need to look for more details on what's going wrong.


By following these steps, you can hopefully fix the problem and make your iOS app work. If it still doesn't work, give more info about your app, Cordova, and any extras you added, so we can help better.

Solution

Hi Ruwin,
Thanks for your comments, I found the root cause of this issue. I used reserved word "Cordova" as the application name. After changing the name of the application it works fine.

Hi @Sasikumar Ashokan ,

Can you please provide a sample OML in order to understand better the issue and what's causing it?

Cheers,

Paulo Solipa

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.