HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了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的一部分:

<key>CFBundleDisplayName</key>
<String>Name - Online</String>
<key>CFBundlEIDentifier</key>
<String>com.xxxxx.xxxxxx</String>
<key>CFBundLeversion</key>
<String>3.4</String>
<key>CFBundleIconFiles</key>
<array>
    <String>Icon-72@2x.png</String>
    <String>Icon-72.png</String>
    <String>Icon@2x.png</String>
    <String>Icon.png</String>
    <String>Icon-60@2x.png</String>
    <String>Icon-76.png</String>
    <String>Icon-76@2x.png</String>
    <String>Default.png</String>
    <String>Default@2x.png</String>
    <String>Default-568h@2x.png</String>
    <String>Default-Landscape.png</String>
    <String>Default-Landscape@2x.png</String>
    <String>Default-PorTrait.png</String>
    <String>Default-PorTrait@2x.png</String>
    <String>Icon-small-50@2x.png</String>
    <String>Icon-small-50.png</String>
    <String>Icon-small-40.png</String>
    <String>Icon-small-40@2x.png</String>
    <String>Icon-small.png</String>
</array>
<key>CFBundleShortVersionString</key>
<String>4.4</String>@H_450_8@

解决方法

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

>右键单击info.plist,选择“打开方式…”并选择“iOS Manifest Editor”.
>转到“可视资产”选项卡,然后选择“使用资产目录”
>保存后,转到解决方案资源管理器中的项目,您应该看到资产目录文件夹.打开它,然后双击Media.
>转到AppIcons并为您正在构建的平台提供所有必要的图标.确保您还@R_749_11262@024×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商店.

大佬总结

以上是大佬教程为你收集整理的xcode – Xamarin更新后缺少Info.plist值(CFBundleIconName).我该如何解决?全部内容,希望文章能够帮你解决xcode – Xamarin更新后缺少Info.plist值(CFBundleIconName).我该如何解决?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。