2017-06-20 172 views
1

我已经设置每一个可能的图标变成我自己的一个“Siri的应用程序的建议”,这是OK无处不在,
除了一个地方 - 在Siri的建议:科尔多瓦错误图标

wrong icon

任何人都可以告诉哪些图标会影响这个图标吗?我花了数小时试图解决它!

这里是我的config.xml:

<platform name="ios"> 
    <icon height="180" src="myres/icon/ios/[email protected]" width="180" /> 
    <icon height="60" src="myres/icon/ios/Icon-60.png" width="60" /> 
    <icon height="120" src="myres/icon/ios/[email protected]" width="120" /> 
    <icon height="76" src="myres/icon/ios/Icon-76.png" width="76" /> 
    <icon height="152" src="myres/icon/ios/[email protected]" width="152" /> 
    <icon height="40" src="myres/icon/ios/Icon-40.png" width="40" /> 
    <icon height="80" src="myres/icon/ios/[email protected]" width="80" /> 
    <icon height="57" src="myres/icon/ios/Icon.png" width="57" /> 
    <icon height="114" src="myres/icon/ios/[email protected]" width="114" /> 
    <icon height="72" src="myres/icon/ios/Icon-72.png" width="72" /> 
    <icon height="144" src="myres/icon/ios/[email protected]" width="144" /> 
    <icon height="167" src="myres/icon/ios/Icon-167.png" width="167" /> 
    <icon height="29" src="myres/icon/ios/Icon-small.png" width="29" /> 
    <icon height="58" src="myres/icon/ios/[email protected]" width="58" /> 
    <icon height="167" src="myres/icon/ios/[email protected]" width="167" /> 
    <icon height="87" src="myres/icon/ios/[email protected]" width="87" /> 
    <icon height="50" src="myres/icon/ios/Icon-50.png" width="50" /> 
    <icon height="100" src="myres/icon/ios/[email protected]" width="100" /> 
    <! skipping splash entries !--> 
</platform> 

回答

0

苹果勾勒出适当大小的几个地方,像他们Human Interface Guidelinesthis technical document。你可以参考,看看发生了什么。您可能想要查找Spotlight图像大小。

这是一个很好的例子,它说明了为什么使用Apple的一流语言之一在Xcode中编写本机应用程序是值得的。

编辑:

搜索StackOverflow上的同样的问题表明,科尔多瓦似乎与正确复制图标的问题。看到这些问题,其中建议的解决方案是直接修改Xcode项目:

两个那些被标记为这一个,里面有很多的更多信息受骗者的:

+1

为什么是一个很好的例子? – jcesarmobile

+0

在这种情况下,在支持的系统之上使用第三方层使调试小事变得更加复杂。您现在有两个失败点(您的代码或Cordova),而不是单点故障(您的Swift或Objective-C代码)。我不清楚XML中是否缺少图标,或者如果Cordova是用XML文件做错误的事情。借助Xcode,我可以依靠Apple的工具将图标放在正确的位置,并且更有信心。所以使用第三方工具只会让你的生活变得更加困难。 – Moshe

+0

谢谢你的回复@Moshe。然而,你的结论声明很奇怪。当然,编写原生应用程序“付出”代价,但这样一来,您就错过了用iOS和Android轻松编写JavaScript的杰出* Cordova *优势。作为我的主要工作,我开发了几年的本地应用程序,并且仍然喜欢Cordova作为我的私人项目。 – ishahak