问题描述
所以,我试图在我的config.xml文件中指定我的应用程序的自定义iOS图标,使用
So I'm trying to specify my custom iOS icons for my app in my config.xml file, using the guide at https://build.phonegap.com/docs/config-xml
但是,当我使用代码行时,你,应用程序无法加载,并在XCode中抛出错误;
However, when I use the line of code they give you, the app fails to load, and throws an error in XCode;
2013-07-24 09:32:06.121 iLens[19852:c07] *** Assertion failure in -[CDVConfigParser parser:parseErrorOccurred:], /Applications/MAMP/htdocs/carlzeiss/phonegap-2.9.0/iLens/CordovaLib/Classes/CDVConfigParser.m:93
2013-07-24 09:32:06.121 iLens[19852:c07] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'config.xml parse error line 38 col 40'
*** First throw call stack:
(0x173012 0x28eee7e 0x172e78 0x1564665 0x7a352 0x15aca08 0x58e02af 0x58fa745 0x590225a 0x59044e5 0x5903f07 0x15ac8fe 0x15ac890 0x15acb46 0x15acbfa 0x590d2 0x57ea0 0x57f6e 0x83749 0x48de1e 0x5802e 0x837ad 0x8326b 0x3ac157 0x3ac747 0x3ad94b 0x3becb5 0x3bfbeb 0x3b1698 0x3720df9 0x3720ad0 0xe8bf5 0xe8962 0x119bb6 0x118f44 0x118e1b 0x3ad17a 0x3aeffc 0x82f4c 0x82ea9)
libc++abi.dylib: terminate called throwing an exception
如果我删除 :platform =ios部分,应用程序加载,但图标不变。
If I remove the gap:platform="ios" part, the app loads, but the icon doesn't change.
有人有一个工作示例, config.xml文件?
Does anyone have a working example of changing icons through the config.xml file please?
注意:我不认为这是与此问题相关的问题的重复。我的问题是关于通过 config.xml
文件添加图标,因为你应该能够按照PhoneGap文档。
Note: I don't believe this is a duplicate of the question that has been linked to this question. My question is in regards to adding icons through the config.xml
file, as you should be able to do as per the PhoneGap documents. However, it turns out that they didn't support this option at that time.
推荐答案
在Xcode中打开项目并放置应用程序它会工作的图标。
Open Your project in Xcode and place App Icon it will work.
这篇关于PhoneGap iOS应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!