Xamarin Forms iOS Build Release Build缺少AppIcons

时间:2019-04-04 09:08:56

标签: xamarin.forms xamarin.ios release visual-studio-mac

在我的Xamarin Forms项目(适用于Mac的Visual Studio)中,当我切换到Release-Build时,出现以下错误:

  

错误:System.IO.FileNotFoundException:/Users/mklieber/Projekte/bosig-acoustic-app/App/App.iOS/obj/iPhone/Release/actool/bundle/AppIcon20x20@3x.png不存在

输出:

new_f = f[keep_col].replace('\\n',' ')

这是AppIcon:

AppIcon

该图标存在(自上而下),将被复制到调试版本中:

Release build

在发行版中,该图标丢失:

Debug build

这是我已经尝试过的:

  • 清洁并重建解决方案
  • 重新创建AppIcon资产
  • 使用Visual Studio for Windows构建项目

关于这个问题有什么想法吗?

1 个答案:

答案 0 :(得分:1)

我通过重新创建所有具有适当大小且非常重要的dpi为96的应用程序图标来解决了该问题。发生错误的原因似乎与图像的dpi一致,我的某些应用程序图标具有一个dpi为300。