2
votes

I am developing one hybrid iOS app using cordova. While installing one cordova plugin I am getting the following error

Error: could not find -Info.plist file, or config.xml file.

Config.xml is there in my project. I couldn't get feasible solution.Someone posted like to remove platform and again add platform.I do not want to take risk by removing platform as it is existing project.

1
Removing platform is not a risk provided you dont have any file changes done directly inside the platform.Gandhi
which plugin are you installing?jcesarmobile
plugin is :cordova-plugin-firebase-analyticsChiranjit Jasu
@Gandhi , is it a feasible solution removing the platform and again adding?Chiranjit Jasu
@ChiranjitJasu It does no harm provided you have all you changes up to date in the root www project folderGandhi

1 Answers

1
votes

Please try to remove $(SRCROOT)/ before your app name in buildSettings section for debug and release mode in project.pbxproj which locates in platforms/ios/YourAppName.xcodeproj/project.pbxproj. You can open it with a text editor such as "Sublime Text".

E.g., there are two lines with same content like this:

INFOPLIST_FILE = "$(SRCROOT)/YourAppName/YourAppName-Info.plist";

Just change it to

INFOPLIST_FILE = "YourAppName/YourAppName-Info.plist";