简体   繁体   English

ios 使用本机反应的模拟器中缺少应用程序图标

[英]ios App Icon is missing in the simulator using react native

我已将所有图标添加到各自的位置。 我添加了我在另一篇文章中找到的这个脚本,但没有运气。

在此处输入图像描述

I added the script that I found in another post but no luck.我添加了在另一篇文章中找到的脚本,但没有运气。 I cleaned the build folder hundred times but nothing is working.我清理了构建文件夹一百次,但没有任何效果。

Select Target from Xcode then navigate to General Tab and under "App Icon and Launch Images" section select "App Icons Source" -> AppIcon Select 目标来自 Xcode 然后导航到常规选项卡并在“应用程序图标和启动图像”部分 select“应用程序图标源”-> AppIcon

Have you checked the "Target Membership" in the right-side pane?您是否检查了右侧窗格中的“目标成员资格”?

  1. Go to "images.xcassets" under your project Go 到您项目下的“images.xcassets”
  2. Click "AppIcon" or any image asset you have for your project单击“AppIcon”或您为项目拥有的任何图像资产
  3. Show the Inspector on the right在右侧显示 Inspector
  4. See if "Target Membership" is checked correctly for your app.查看是否为您的应用正确检查了“目标成员资格”。

XCode 检查器窗口

It was greyed out in the Target membership.它在 Target 成员资格中显示为灰色。 I fixed that and it worked.我解决了这个问题,它奏效了。

Actually in my case the target has been set correctly.实际上,就我而言,目标已正确设置。 All I needed to do was to turn off the simulator and let it get started by the build again.我需要做的就是关闭模拟器并让它重新开始构建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM