我在IOS和android中创建了一个应用程序,用于在cordova cli 6.3.1中创建应用程序。将图标添加到Cordova CLI 6.3.1中的IOS应用程序
我没有得到在iOS中显示的应用程序图标,但在Android中正常工作。
这里是我的配置
我APP 我APP
<content src="index.html" />
<plugin name="cordova-plugin-splashscreen" spec="4.0.0" />
<plugin name="cordova-plugin-network-information" spec="1.3.0" />
<plugin name="cordova-plugin-dialogs" spec="1.3.0" />
<plugin name="cordova-plugin-device" spec="1.1.3" />
<plugin name="cordova-plugin-statusbar" spec="2.2.0" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<preference name="DisallowOverscroll" value="true" />
<preference name="SplashScreenDelay" value="5000" />
<preference name="StatusBarOverlaysWebView" value="true" />
<preference name="backgroundColor" value="#c72678" />
<preference name="ShowSplashScreenSpinner" value="false"/>
<preference name="prerendered-icon" value="false" />
<preference name="orientation" value="portrait" />
<preference name="fullscreen" value="false" />
<preference name="target-device" value="universal" />
<preference name="deployment-target" value="6.1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
<splash src="images/splashscreen/android/800x1280.png" />
<splash src="images/splashscreen/android/200x300.png" platform="android" qualifier="ldpi" />
<splash src="images/splashscreen/android/307x480.png" platform="android" qualifier="mdpi" />
<splash src="images/splashscreen/android/480x800.png" platform="android" qualifier="hdpi" />
<splash src="images/splashscreen/android/720x1280.png" platform="android" qualifier="xhdpi" />
<splash src="images/splashscreen/android/720x1280.png" platform="android" qualifier="fr-xhdpi" />
<icon src="images/icon.png" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<config-file platform="ios" target="*-Info.plist" parent="UIStatusBarHidden">
<true/>
</config-file>
<config-file platform="ios" target="*-Info.plist" parent="UIViewControllerBasedStatusBarAppearance">
<false/>
</config-file>
<!-- iPhone and iPod touch -->
<splash src="images/splashscreen/ios/320x480.png" platform="ios" width="320" height="480" />
<!-- iPhone 5/iPod Touch (5th Generation) -->
<splash src="images/splashscreen/ios/640x1136.png" platform="ios" width="640" height="1136" />
<!-- iPhone 6 -->
<splash src="images/splashscreen/ios/750x1334.png" platform="ios" width="750" height="1334" />
<splash src="images/splashscreen/ios/1242x2208.png" platform="ios" width="1242" height="2208" />
<!-- iPad -->
<splash src="images/splashscreen/ios/768x1024.png" platform="ios" width="768" height="1024" />
<!-- Retina iPad -->
<splash src="images/splashscreen/ios/1536x2048.png" platform="ios" width="1536" height="2048" />
<!-- iPad -->
<icon src="images/icon_76x76.png" platform="ios" width="76" height="76" />
<!-- iPhone/iPod Touch -->
<icon src="images/icon_57x57.png" platform="ios" width="57" height="57" />
<!-- iPad -->
<icon src="images/icon_72x72.png" platform="ios" width="72" height="72" />
的图标图像是否有指定的文件夹中。
任何人都可以帮我解决这个问题吗?在此先感谢
谢谢你的答案。这是确切的解决方案。 – mobiledevnewbie
你刚刚救了我的命。 14小时的挫折和死胡同。非常感谢。问题:将此添加到我的config.xml似乎解决了我们的应用程序的所有图标需求。这是否意味着cordova-icon插件不再需要? – Rjak
@Rjak你的意思是cordova-icon脚本?您仍然需要以某种方式创建图标。 – RonaldPK