xcode – Xamarin更新后缺少Info.plist值(CFBundleIconName).我该如何解决?

前端之家收集整理的这篇文章主要介绍了xcode – Xamarin更新后缺少Info.plist值(CFBundleIconName).我该如何解决?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在我的Mac上更新我的Xamarin,xCode并尝试上传到App Store之后,我收到了来自Apple的这种电子邮件

缺少Info.plist值 – 捆绑包’com.xxxx.yyyy’中缺少Info.plist键’CFBundleIconName’的值.使用iOS 11或更高版本SDK构建的应用必须在资产目录中提供应用图标,并且还必须为此Info.plist密钥提供值.有关详细信息,请参阅http://help.apple.com/xcode/mac/current/#/dev10510b1f7.更正这些问题后,您可以重新更新已更正的二进制文件.

据我所知,我需要将我的图标转换为资产目录,但我不知道如何在Visual Studio 2015(Windows)中执行此操作?
这是我的info.plist的一部分:

  1. <key>CFBundleDisplayName</key>
  2. <string>Name - Online</string>
  3. <key>CFBundleIdentifier</key>
  4. <string>com.xxxxx.xxxxxx</string>
  5. <key>CFBundleVersion</key>
  6. <string>3.4</string>
  7. <key>CFBundleIconFiles</key>
  8. <array>
  9. <string>Icon-72@2x.png</string>
  10. <string>Icon-72.png</string>
  11. <string>Icon@2x.png</string>
  12. <string>Icon.png</string>
  13. <string>Icon-60@2x.png</string>
  14. <string>Icon-76.png</string>
  15. <string>Icon-76@2x.png</string>
  16. <string>Default.png</string>
  17. <string>Default@2x.png</string>
  18. <string>Default-568h@2x.png</string>
  19. <string>Default-Landscape.png</string>
  20. <string>Default-Landscape@2x.png</string>
  21. <string>Default-Portrait.png</string>
  22. <string>Default-Portrait@2x.png</string>
  23. <string>Icon-Small-50@2x.png</string>
  24. <string>Icon-Small-50.png</string>
  25. <string>Icon-Small-40.png</string>
  26. <string>Icon-Small-40@2x.png</string>
  27. <string>Icon-Small.png</string>
  28. </array>
  29. <key>CFBundleShortVersionString</key>
  30. <string>4.4</string>

解决方法

我有完全相同的问题.基本上这有助于我解决问题: https://github.com/MobiVM/robovm/issues/210

>右键单击info.plist,选择“打开方式…”并选择“iOS Manifest Editor”.
>转到“可视资产”选项卡,然后选择“使用资产目录”
>保存后,转到解决方案资源管理器中的项目,您应该看到资产目录文件夹.打开它,然后双击Media.
>转到AppIcons并为您正在构建的平台提供所有必要的图标.确保您还包含1024×1024像素的App Store图标.如果您遗漏任何所需内容,则会在将.ipa文件上传到iTunes Connect时收到提醒.
>再次编辑info.plist,但现在在XML编辑器中打开它.添加以下内容

<密钥GT; CFBundleIconName< /密钥GT;

<串GT; AppIcons< /串GT;
>注释掉CFBundleIconFiles数组.在我的情况下它是:

<! – 密钥GT; CFBundleIconFiles< /密钥GT;
<阵列>
<串GT; Icon@2x.png\u0026lt; /串GT;
<串GT;&的icon.png LT; /串GT;
<串GT; Icon-60@2x.png\u0026lt; /串GT;
<串GT; Icon-Small@2x.png\u0026lt; /串GT;
<串GT;图标-Small.png< /串GT;
<串GT; Icon-Small-40@2x.png\u0026lt; /串GT;
< /阵列 – >

之后,您应该能够上传到Apple商店.

猜你在找的iOS相关文章