Xamarin iOS -为什么Transporter找不到我的图标?

nwlls2ji  于 2023-01-14  发布在  iOS
关注(0)|答案(3)|浏览(257)

我有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"
},

这是我的信息。plist:

这些文件是目前为什么我得到的错误?任何建议,我将不胜感激。已经花了很多时间。

8i9zcol2

8i9zcol21#

1.在iOS项目中打开您的Info.plist
1.添加XSAppIconAssets属性
1.输入资源名称和图标集
请查看下面工作项目的演示

rdlzhqv9

rdlzhqv92#

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

cwxwcias

cwxwcias3#

不久前我在VS 22 v4.3.7上遇到了这个问题。我们都添加了图标,我在info. plist中正确引用了它们。|iOS项目设置中的iPhone配置是问题所在。我创建了一个新项目,检查了那里的配置,并与我的进行了比较。下面是我的工作配置的示例:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhone\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<MtouchArch>ARM64</MtouchArch>
<CodesignKey>Your_Distribution_Profile</CodesignKey>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
<OptimizePNGs>true</OptimizePNGs>
<CodesignProvision>Your_Distribution_Provisioning</CodesignProvision>
<BuildIpa>true</BuildIpa>
<PlatformTarget>x64</PlatformTarget>

希望能有所帮助!

相关问题