- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
另一个“缺少‘CFBundleIconName’”问题
我知道在 SO 中已经有很多标题几乎相同的问题,并且许多答案提出了不同的解决方案。
在我看来,这背后的问题是使用来自 Apple 的非常通用的信息来涵盖非常广泛的问题。
我有一个 iOS 应用程序(使用 Xamarin.Forms 编写),它已经发布在 AppStore 中。不过,最近,我尝试上传更新,但收到一封来自 Apple 的电子邮件,说
Dear Developer,
We identified one or more issues with a recent delivery for your app,"Kuhnle Mobile 2021" 2021.1.35242 (35242). Please correct thefollowing issues, then upload again.
ITMS-90713: Missing Info.plist value - A value for the Info.plist key'CFBundleIconName' is missing in the bundle 'com.kuhnle.mobile2021'.Apps built with iOS 11 or later SDK must supply app icons in an assetcatalog and must also provide a value for this Info.plist key. Formore information seehttp://help.apple.com/xcode/mac/current/#/dev10510b1f7.
Best regards,
The App Store Team
Info.plist
已经有 XSAppIconAssets
和 CFBundleIconName
,看起来像:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>MinimumOSVersion</key>
<string>13.5</string>
<key>CFBundleDisplayName</key>
<string>Kuhnle Mobile 2022</string>
<key>CFBundleDevelopmentRegion</key>
<string>de</string>
<key>CFBundleLocalizations</key>
<array>
<string>de</string>
<string>en</string>
<string>es</string>
</array>
<key>CFBundleIdentifier</key>
<string>com.my.AppName</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIFileSharingEnabled</key>
<true/>
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>
<key>CFBundleShortVersionString</key>
<string>2022.1.34969</string>
<key>CFBundleVersion</key>
<string>34969</string>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcon.appiconset</string>
<key>CFBundleIconName</key>
<string>AppIcon</string>
<key>UIUserInterfaceStyle</key>
<string>Light</string>
<key>NSCameraUsageDescription</key>
<string>By granting access to the camera you will be able to make photos that you consider specifically relevant for the current document and have them stored directly in its associated folder.</string>
</dict>
</plist>
ImageAssets
,看起来像这样 <ItemGroup>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Contents.json">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-60@2x.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-60@2x1.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-60@3x.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-76.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-761.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-76@2x.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-83.5@2x.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-AppStore1024.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-Notification20.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-Notification20@3x.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-Settings29.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-Small-40.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-Small-401.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-Small-40@2x.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-Small-40@2x1.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-Spotlight29@2x.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-Spotlight29@2x1.png">
<Visible>false</Visible>
</ImageAsset>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-Spotlight29@3x.png">
<Visible>false</Visible>
</ImageAsset>
</ItemGroup>
问题描述
最佳答案
更新 (16.06.2021)
Visual Studio for Windows v.16.10.2 已发布,并修复了导致 OP 问题的错误。
原答案
这是一个已报告的错误,正在进行修复
https://github.com/xamarin/xamarin-macios/issues/11786
关于ios - 将 ipa 上传到 AppStore 时如何修复 "' CFBundleIconName' is missing” 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67843268/
我是一名优秀的程序员,十分优秀!