Reputation: 125
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.
Upvotes: 2
Views: 2382
Reputation: 11
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";
Upvotes: 1