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>

解决方法

我有完全相同的问题.基本上这有助于我解决问题: 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商店.

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...