After trying many things, this is how I fixed the "Missing required icon" error messages: Go to Solution->ProjectName.iOS->Asset Catalogs->Assets. See "AppIcons" there? We are going to delete it, BUT FIRST! Find that same folder in your project files and copy it somewhere safe. Now, delete the AppIcons asset in the project. Also delete the "Assets" catalog. ProjectName.iOS right click select 'Clean'. Go to physical project folder. Delete the "bin" and "obj" folders. Find the empty "Assets.xcassets" folder and delete it as well. ProjectName.iOS->Asset Catalogs right click select "Add Asset Catalog". It should automatically add an "AppIcons" entry. Go through and set each of the image sizes, pointing to where you copied your images. They will automatically be copied to the Assets.xcassets folder. They will also generate hidden entries in the ProjectName.iOS.csproj file that will include the image in the final binary. The entries look like this:
Edit Info.plist. Set the App Icons Source to "AppIcons". ProjectName.iOS right click, select "Rebuild". ProjectName.iOS right click, select "Archive". Archive Manager > Distribute > App Store. Verify certificate. Enter Apple login name and App-Specific password to upload. Done!
You're getting this error because you have checked the iPad option. In my case, I had been developing my app on Xcode 13.x and then after the new version of Xcode 14.x I got this error. So on Xcode 14 there is no need to create app icons in various versions and put them inside Images.xcassets , just follow the steps:
Click on the Images :
Then try to press + and choose iOS App icon:
You will see it got changed by comparing it to the previous version, it only accepts one and only one 1024x png image.
Now, clean your last build and build you app again.
9条答案
按热度按时间js81xvg61#
转到xcode〉选择Images.xcassets〉从右上角的右侧菜单中选中iPad〉您将获得一组新的维度,现在只需为每个维度填充新的应用程序图标即可。
t2a7ltrp2#
最近几天我遇到了一个特别的问题。
iPad图标没有显示在
Info.plist
中,并且一直在给你发出警告。我的修复方法是手动将图标
Icon-83.5@2x.png
添加到resources文件夹(正如Prashant指出的),并将其添加到Info.plist
:我曾经使用
Asset Catalog
,但我不能让它与iPad Pro
图标一起工作。cetgtptt3#
对于论坛帖子Andres在评论中提到的:
将167x167图标文件重命名为
Icon-83.5@2x.png
,将其放在Resources文件夹中,并确保其生成操作为BundleResource
。有关设置
BundleResource
选项的信息,请参见https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_resources/。ryevplcw4#
XCODE 13 2022
在我的例子中,问题是默认的AppIcon被弃用,那么我们需要使用一个新的应用程序图标标准。当我发布应用程序到iPhone和iPad时,我需要所有必要的图标。(当你只选中一个设备(iPhone或iPad)时,这个问题不会出现)x1c 0d1x
1.转到Xcode〉Images.xcassets〉并从资源列表中选择您的应用程序图标。
1.右键单击那里,你现在可以看到一个菜单列表,如
选择iOS〉新iOS应用程序图标
然后,您现在可以找到名为“AppIcon-1”的新“AppIcon”资源
与“AppIcon”不同,因为它有更多图标选项(iPad图标大小)
删除“应用程序图标”(旧)
将“应用程序图标-1”重命名为“应用程序图标”x1c4d 1x
现在你可以把丢失的图标大小。
qlfbtfca5#
我在连接了MacBook的Windows机器上使用Visual Studio 2017。我有一个名为images的资产目录,其中包含一个名为AppIcons的图像集,我在其中发布了所有所需的各种图像大小。我得到了与medvedo相同的错误,但我得到了3个不同图像大小的3个错误(2个用于iPad,1个用于iPod,我记得)经过大量的搜索,我发现解决方案是引用Info. Plist文件中的资产目录。
首先,我必须找到Xamarin放置我的资产目录的路径。我通过将应用程序部署到MacBook上来实现这一点,然后使用Finder进入Go菜单,选择Library文件夹(当天早些时候,我在谷歌上搜索了如何在Mac上显示隐藏文件夹)在Library文件夹中,我找到了Caches文件夹,并在其中找到了Xamarin/mtbs/builds/myappname。在那里,我发现该文件夹是Images. xcassets/ appicons.appiconset。我说这一切都知道它可能一直在那个文件夹里,但我不得不查找它,所以我想我会分享,以防它从安装到安装发生变化。
一旦我知道了路径和名称,我就可以将以下内容添加到分支内的Info.plist文件中
XSAppIconAssets图像. xcassets/应用程序图标. appiconset
顺便说一句,在过去的8个月里,我已经构建并部署了这个应用程序到iTunes至少4次。我不确定我做了什么,如果有的话,导致错误弹出。
omjgkv6w6#
After trying many things, this is how I fixed the "Missing required icon" error messages: Go to Solution->ProjectName.iOS->Asset Catalogs->Assets.
See "AppIcons" there? We are going to delete it, BUT FIRST! Find that same folder in your project files and copy it somewhere safe. Now, delete the AppIcons asset in the project. Also delete the "Assets" catalog.
ProjectName.iOS right click select 'Clean'. Go to physical project folder. Delete the "bin" and "obj" folders. Find the empty "Assets.xcassets" folder and delete it as well.
ProjectName.iOS->Asset Catalogs right click select "Add Asset Catalog". It should automatically add an "AppIcons" entry. Go through and set each of the image sizes, pointing to where you copied your images. They will automatically be copied to the Assets.xcassets folder. They will also generate hidden entries in the ProjectName.iOS.csproj file that will include the image in the final binary. The entries look like this:
Edit Info.plist. Set the App Icons Source to "AppIcons".
ProjectName.iOS right click, select "Rebuild". ProjectName.iOS right click, select "Archive". Archive Manager > Distribute > App Store. Verify certificate. Enter Apple login name and App-Specific password to upload. Done!
7rfyedvj7#
如果您仍然面临上述所有流程步骤都正确执行的问题。那么请检查您是否使用浏览器登录到Appstore连接,然后尝试发布它将和工作。
368yc8dk8#
如果您不希望该应用程序可用于iPad,并得到相同的错误,只是取消选中iPad从runner属性下面的版本号
h79rfbju9#
Xcode 14.1 (14B47b)
You're getting this error because you have checked the
iPad
option. In my case, I had been developing my app on Xcode 13.x and then after the new version of Xcode 14.x I got this error.So on Xcode 14 there is no need to create app icons in various versions and put them inside
Images.xcassets
, just follow the steps:Images
:Now, clean your last build and build you app again.