2017-10-08 174 views
5

更新我的Mac上我的Xamarin,Xcode和试图上传到应用程序商店后,我收到这样的电子邮件从苹果:Xamarin更新后缺少Info.plist值(CFBundleIconName)。我该如何解决它?

缺少Info.plist的价值 - 一种Info.plist中键值“com.xxxx.yyyy”包中缺少'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>[email protected]</string> 
    <string>Icon-72.png</string> 
    <string>[email protected]</string> 
    <string>Icon.png</string> 
    <string>[email protected]</string> 
    <string>Icon-76.png</string> 
    <string>[email protected]</string> 
    <string>Default.png</string> 
    <string>[email protected]</string> 
    <string>[email protected]</string> 
    <string>Default-Landscape.png</string> 
    <string>[email protected]</string> 
    <string>Default-Portrait.png</string> 
    <string>[email protected]</string> 
    <string>Icon-Smal[email protected]</string> 
    <string>Icon-Small-50.png</string> 
    <string>Icon-Small-40.png</string> 
    <string>[email protected]</string> 
    <string>Icon-Small.png</string> 
</array> 
<key>CFBundleShortVersionString</key> 
<string>4.4</string> 

回答

3

我有完全一样的问题。 Bascially帮我解决这个问题:https://github.com/MobiVM/robovm/issues/210

  1. 右键info.plist中,选择“打开方式...”,并选择“iOS的清单编辑器”。
  2. 转到可视资产标签并选择“使用资产目录”
  3. 保存后,转到解决方案资源管理器中的项目,您应该看到资产目录文件夹。打开它并双击媒体。
  4. 转到AppIcons并为您正在构建的平台提供所有必要的图标。确保你还包含了1024×1024像素的App Store图标。如果您错过了所需的任何内容,则会在将您的.ipa文件上传到iTunes Connect时收到警报。

  5. 再次编辑info.plist,但现在在XML编辑器中打开它。添加以下内容:

    <key>CFBundleIconName</key>

  6. 注释掉CFBundleIconFiles阵列。在我的情况是:

    <!--key>CFBundleIconFiles</key> <array> <string>[email protected]</string> <string>Icon.png</string> <string>[email protected]</string> <string>[email protected]</string> <string>Icon-Small.png</string> <string>[email protected]</string> </array-->

之后,你应该能够上传到苹果商店。

+0

优秀,你的解决方案为我然而 ** APPICON ** 应该已经 ** AppIcons ** 相匹配的目录组名称。否则,你会得到一堆其他的错误。 – bertusaurus

相关问题