[英]Error while archiving react-native iOS project for testflight, app-icon
I am trying to Archive a react-native iOS app in preparation of distributing via TestFlight.我正在尝试存档一个 react-native iOS 应用程序,以准备通过 TestFlight 进行分发。 I already added app icons of several resolutions, but I am still getting errors of missing app icons.
我已经添加了几种分辨率的应用程序图标,但我仍然收到缺少应用程序图标的错误。
and here is the error.这是错误。
I also have App Icons Source set to AppIcon in the General tab of the project.我还在项目的常规选项卡中将 App Icons Source 设置为 AppIcon。
This is a react native app, which I am trying to distribute it to testers via TestFlight.这是一个本机应用程序,我试图通过 TestFlight 将其分发给测试人员。
Check your target for the source of App Icons.检查您的目标以获取应用程序图标的来源。
It means only icons inside AppIcon
are effected.这意味着只有
AppIcon
内的图标会受到影响。
You could use tool like MakeAppIcon that generate all icons that you need.您可以使用像MakeAppIcon这样的工具来生成您需要的所有图标。
I started the react native development from a seed git repo.我从种子 git repo 开始了 react native 开发。 Even though I had all the icons in Images.xcassets, the problem was, in the "Build Phases" I had another shared resources of another xcassets which was blank (had no icons) in the "Copy Bundle resources".
尽管我在 Images.xcassets 中有所有图标,但问题是,在“构建阶段”中,我有另一个 xcassets 的另一个共享资源,它在“复制捆绑资源”中是空白的(没有图标)。 I copied the images from Images.xcassets to that shared resources and I was able to archive it successfully.
我将图像从 Images.xcassets 复制到该共享资源,并且能够成功存档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.