【问题标题】:Xamarin iOS - why does Transporter not find my icons?Xamarin iOS - 为什么 Transporter 找不到我的图标?
【发布时间】:2020-12-02 18:01:29
【问题描述】:

我在 xamarin 表单上有应用程序。我正在尝试在 Apple Store 中发布该应用程序(使用 Transporter 应用程序)。我有这个错误:

 ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0. To support older versions of iOS, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface"

ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 7.0. To support older operating systems, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface"

ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '167x167' pixels, in .png format for iOS versions supporting iPad Pro. To support older operating systems, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface"

ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '76x76' pixels, in .png format for iOS versions >= 7.0. To support older operating systems, the icon may be required in the bundle outside of an asset catalog. Make sure the Info.plist file includes appropriate entries referencing the file. See https://developer.apple.com/documentation/bundleresources/information_property_list/user_interface" 

如果短暂丢失 4 个文件('120x120','152x152','167x167','76x76')。我尝试了不同的选项和不同的服务,这是我的最后一个(来自 Contents.json)。

....
{
  "scale": "1x",
  "size": "76x76",
  "idiom": "ipad",
  "filename": "Icon76.png"
},
{
  "scale": "2x",
  "size": "76x76",
  "idiom": "ipad",
  "filename": "Icon152.png"
},
{
  "scale": "2x",
  "size": "83.5x83.5",
  "idiom": "ipad",
  "filename": "Icon167.png"
},

这是我的 info.plist:

这些文件存在为什么我会收到错误消息?任何建议,我将不胜感激。已经花了很多时间了。

【问题讨论】:

  • 您是否明确设置,您的资产是 appIcon 提供者?

标签: ios xamarin xamarin.forms ipa


【解决方案1】:
  1. 在 iOS 项目中打开您的 Info.plist
  2. 添加 XSAppIconAssets 属性
  3. 输入资产名称和图标集

请检查下面工作项目中的演示

【讨论】:

  • 我有这个字符串。我更新了我的问题。也许我需要删除字符串 CFBundleIconName?
  • 是的,请删除,我在info.plist文件中没有
  • 我做到了,但我有同样的错误(4 个错误)
  • 能否附上资产中的 appicon 截图?
【解决方案2】:

我解决了这个问题。问题出在项目文件中,而不是图标。经过多次尝试,我创建了一个新项目(xamarin forms->xamarin.ios)并复制了所需的依赖项。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-09-22
    • 1970-01-01
    • 1970-01-01
    • 2023-04-10
    • 1970-01-01
    • 1970-01-01
    • 2019-02-10
    相关资源
    最近更新 更多