适用于 VS 2005 的 Cordova 工具:iOS 应用程序不显示闪屏和图标
Cordova Tools for VS 2005: iOS app does not display splashscreen and icons
使用 VS 2013 Cordova 工具(当前版本),我的 iOS 应用程序不显示给定的闪屏和图标,除非我在 [=13] 中设置 <icon>
和 <splashscreen>
元素=].但是,当使用可视化编辑器编辑 config.xml
时,它只会删除所有 <icon>
和 <splashscreen>
元素。我错过了什么吗?
观察:图标和启动画面适用于开箱即用的 android 个应用程序,只是不适用于 iOS。
我有类似的问题。我根本没有使用图形配置编辑器,只使用文本编辑器。
但是,Visual Studio 2015 RC 修复了这个问题,每个图标和初始屏幕都有一个隐式配置。
不幸的是,在 VS 2013 中使用最新版本的 vs-mda-remote 时,这是一个已知问题。
您应该可以通过右键单击 > 查看代码将此 XML 添加到 config.xml 以解决问题。
<platformname="ios">
<iconsrc="res/icons/ios/icon-60-3x.png"width="180"height="180" />
<iconsrc="res/icons/ios/icon-60.png"width="60"height="60" />
<iconsrc="res/icons/ios/icon-60-2x.png"width="120"height="120" />
<iconsrc="res/icons/ios/icon-76.png"width="76"height="76" />
<iconsrc="res/icons/ios/icon-76-2x.png"width="152"height="152" />
<iconsrc="res/icons/ios/icon-40.png"width="40"height="40" />
<iconsrc="res/icons/ios/icon-40-2x.png"width="80"height="80" />
<iconsrc="res/icons/ios/icon-57.png"width="57"height="57" />
<iconsrc="res/icons/ios/icon-57-2x.png"width="114"height="114" />
<iconsrc="res/icons/ios/icon-72.png"width="72"height="72" />
<iconsrc="res/icons/ios/icon-72-2x.png"width="144"height="144" />
<iconsrc="res/icons/ios/icon-small.png"width="29"height="29" />
<iconsrc="res/icons/ios/icon-small-2x.png"width="58"height="58" />
<iconsrc="res/icons/ios/icon-50.png"width="50"height="50" />
<iconsrc="res/icons/ios/icon-50-2x.png"width="100"height="100" />
</platform>
<platformname="ios">
<splashsrc="res/screens/ios/screen-iphone-portrait.png"width="320"height="480" />
<splashsrc="res/screens/ios/screen-iphone-portrait-2x.png"width="640"height="960" />
<splashsrc="res/screens/ios/screen-ipad-portrait.png"width="768"height="1024" />
<splashsrc="res/screens/ios/screen-ipad-portrait-2x.png"width="1536"height="2048" />
<splashsrc="res/screens/ios/screen-ipad-landscape.png"width="1024"height="768" />
<splashsrc="res/screens/ios/screen-ipad-landscape-2x.png"width="2048"height="1536" />
<splashsrc="res/screens/ios/screen-iphone-568h-2x.png"width="640"height="1136" />
<splashsrc="res/screens/ios/screen-iphone-portrait-667h.png"width="750"height="1334" />
<splashsrc="res/screens/ios/screen-iphone-portrait-736h.png"width="1242"height="2208" />
<splashsrc="res/screens/ios/screen-iphone-landscape-736h.png"width="2208"height="1242" />
</platform>
更多已知问题:https://www.visualstudio.com/explore/cordova-known-issues-vs
使用 VS 2013 Cordova 工具(当前版本),我的 iOS 应用程序不显示给定的闪屏和图标,除非我在 [=13] 中设置 <icon>
和 <splashscreen>
元素=].但是,当使用可视化编辑器编辑 config.xml
时,它只会删除所有 <icon>
和 <splashscreen>
元素。我错过了什么吗?
观察:图标和启动画面适用于开箱即用的 android 个应用程序,只是不适用于 iOS。
我有类似的问题。我根本没有使用图形配置编辑器,只使用文本编辑器。
但是,Visual Studio 2015 RC 修复了这个问题,每个图标和初始屏幕都有一个隐式配置。
不幸的是,在 VS 2013 中使用最新版本的 vs-mda-remote 时,这是一个已知问题。
您应该可以通过右键单击 > 查看代码将此 XML 添加到 config.xml 以解决问题。
<platformname="ios">
<iconsrc="res/icons/ios/icon-60-3x.png"width="180"height="180" />
<iconsrc="res/icons/ios/icon-60.png"width="60"height="60" />
<iconsrc="res/icons/ios/icon-60-2x.png"width="120"height="120" />
<iconsrc="res/icons/ios/icon-76.png"width="76"height="76" />
<iconsrc="res/icons/ios/icon-76-2x.png"width="152"height="152" />
<iconsrc="res/icons/ios/icon-40.png"width="40"height="40" />
<iconsrc="res/icons/ios/icon-40-2x.png"width="80"height="80" />
<iconsrc="res/icons/ios/icon-57.png"width="57"height="57" />
<iconsrc="res/icons/ios/icon-57-2x.png"width="114"height="114" />
<iconsrc="res/icons/ios/icon-72.png"width="72"height="72" />
<iconsrc="res/icons/ios/icon-72-2x.png"width="144"height="144" />
<iconsrc="res/icons/ios/icon-small.png"width="29"height="29" />
<iconsrc="res/icons/ios/icon-small-2x.png"width="58"height="58" />
<iconsrc="res/icons/ios/icon-50.png"width="50"height="50" />
<iconsrc="res/icons/ios/icon-50-2x.png"width="100"height="100" />
</platform>
<platformname="ios">
<splashsrc="res/screens/ios/screen-iphone-portrait.png"width="320"height="480" />
<splashsrc="res/screens/ios/screen-iphone-portrait-2x.png"width="640"height="960" />
<splashsrc="res/screens/ios/screen-ipad-portrait.png"width="768"height="1024" />
<splashsrc="res/screens/ios/screen-ipad-portrait-2x.png"width="1536"height="2048" />
<splashsrc="res/screens/ios/screen-ipad-landscape.png"width="1024"height="768" />
<splashsrc="res/screens/ios/screen-ipad-landscape-2x.png"width="2048"height="1536" />
<splashsrc="res/screens/ios/screen-iphone-568h-2x.png"width="640"height="1136" />
<splashsrc="res/screens/ios/screen-iphone-portrait-667h.png"width="750"height="1334" />
<splashsrc="res/screens/ios/screen-iphone-portrait-736h.png"width="1242"height="2208" />
<splashsrc="res/screens/ios/screen-iphone-landscape-736h.png"width="2208"height="1242" />
</platform>
更多已知问题:https://www.visualstudio.com/explore/cordova-known-issues-vs