错误:找不到-Info.plist文件或config.xml文件 [英] Error: could not find -Info.plist file, or config.xml file
问题描述
我正在使用 cordova 开发一个混合的iOS应用。安装一个cordova插件时,出现以下错误
I am developing one hybrid iOS app using cordova. While installing one cordova plugin I am getting the following error
错误:找不到-Info.plist文件或config.xml文件。
Error: could not find -Info.plist file, or config.xml file.
Config.xml在我的项目中。我找不到可行的解决方案。有人张贴过要删除平台然后再次添加平台的信息。我不想冒险删除平台,因为它是现有项目。
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.
推荐答案
请尝试在build $ Settings部分中的应用名称之前删除 $(SRCROOT)/
,以便在 project.pbxproj
,该文件位于 platforms / ios / YourAppName.xcodeproj / project.pbxproj
中。您可以使用 Sublime Text之类的文本编辑器将其打开。
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";
只需将其更改为
INFOPLIST_FILE = "YourAppName/YourAppName-Info.plist";
这篇关于错误:找不到-Info.plist文件或config.xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!