简体   繁体   English

将Icon 83.5x83.5@2x添加到带有远程构建的Apache Cordova的Visual Studio工具中的iOS App

[英]Add Icon 83.5x83.5@2x to iOS App in Visual Studio Tools for Apache Cordova with remote-build

I have added a icon called icon-83.5-2x.png in the res folder and add the following line to the config.xml: 我在res文件夹中添加了一个名为icon-83.5-2x.png ,并将以下行添加到config.xml:

<icon height="167" src="res/icons/ios/icon-83.5-2x.png" width="167" />

the icon is copied into the folder AppIcon.appiconset on my windows machine but not on my mac. 该图标将复制到我的Windows机器上的AppIcon.appiconset文件夹中,但不会复制到我的Mac上。 How can I add the iPad Pro icon to the Xcode project? 如何将iPad Pro图标添加到Xcode项目?

There is support for this icon size in the latest version of the iOS platform support in Cordova, with Cordova v6.1.0 (iOS Platform support v4.1.0). 使用Cordova v6.1.0(iOS平台支持v4.1.0),在Cordova的最新版iOS平台支持中支持此图标大小。 As of March 2016, Visual Studio's Cordova tooling is using Cordova v6.0.0 (with iOS platform v.4.0). 截至2016年3月,Visual Studio的Cordova工具使用Cordova v6.0.0(iOS平台v.4.0)。 Until the Visual Studio default changes, here's how you can update your project to use Cordova 6.1 with the updated iOS platform which will fix your issue: 在Visual Studio默认更改之前,您可以通过更新的iOS平台更新项目以使用Cordova 6.1来解决您的问题:

  1. Open config.xml in your project 在项目中打开config.xml
  2. Go to the Platforms tab 转到平台选项卡
  3. Change the Cordova CLI version to "6.1.0" Cordova CLI版本更改为“6.1.0”
  4. Close the window and save your changes 关闭窗口并保存更改
  5. Build the project again 再次构建项目

Now you should see that the icon is copied via remote build correctly. 现在您应该看到图标是通过远程构建正确复制的。

I'll also add that I'm a part of the Visual Studio Cordova tools team and in our initial testing with 6.1.0 so far we haven't found any issues. 我还要补充一点,我是Visual Studio Cordova工具团队的一员,在6.1.0的初始测试中,到目前为止我们还没有发现任何问题。 However, until we complete our full test passes, there may be some problems we just haven't encountered yet. 但是,在我们完成完整的测试通过之前,可能会遇到一些我们尚未遇到的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 科尔多瓦无效的图像路径AppIcon83.5x83.5 - cordova invalid image path AppIcon83.5x83.5 如何使用Visual Studio工具为Apache Cordova设置IOS的应用程序图标和启动屏幕? - How to set app icon and splash screen for IOS using visual studio tools for apache cordova? Visual Studio Cordova OS X或IOS远程连接 - Visual Studio Cordova OS X or IOS Remote connection Visual Studio Cordova iOS部署用于远程构建 - visual studio cordova ios deploy for remote build Visual Studio Cordova IOS远程构建失败 - Visual Studio Cordova IOS remote build fail 适用于Apache Cordova / Visual Studio 2015的工具无法在IOS模拟器中启动应用程序 - Tools for Apache Cordova/Visual Studio 2015 fails to launch app in IOS simulator Apache Cordova / Visual Studio 2015工具无法在IOS模拟器中启动应用程序 - Apache Cordova/Visual Studio 2015 tools fails to launch app in IOS simulator 如何使用Visual Studio Tools为Apache Cordova和Xcode 8构建iOS应用程序 - How to build an iOS application using Visual Studio Tools for Apache Cordova and Xcode 8 Visual Studio调试器无法连接到iOS模拟器中的远程Apache Cordova应用 - Visual Studio Debugger failing to connect to remote Apache Cordova app in iOS simulator Visual Studio Apache Cordova-iOS运行时会生成丢失的Javascript文件 - Visual Studio Apache Cordova - iOS build missing Javascript files on run
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM