Xcode,无法从项目中删除“启动图像”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6560568/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:24:06  来源:igfitidea点击:

Xcode, can't remove "Launch image" from project

xcodeimagelaunch

提问by James Raitsev

I am playing with my Xcode, following tutorial, learning this stuff. I added an image to "Launch Images", rebuilt my project, it showed up.

我正在玩我的 Xcode,按照教程学习这些东西。我在“启动图像”中添加了一个图像,重建了我的项目,它出现了。

  • I removed the image, rebuilt my project .... image still flashed before app started

  • I deleted my project, redid my project, this time with no image, launched the app and voila ... image is still there?

  • I reset simulator counters and settings ... same issue

  • 我删除了图像,重建了我的项目......在应用程序启动之前图像仍然闪烁

  • 我删除了我的项目,重新制作了我的项目,这次没有图像,启动了应用程序,瞧……图像还在吗?

  • 我重置模拟器计数器和设置......同样的问题

Is there a permanent location where this file can be removed from? Is there a cache that needs to be reset etc?

是否有可以从中删除此文件的永久位置?是否有需要重置等的缓存?

Please let me know.

请告诉我。

回答by FeifanZ

iPhone Simulator caches stuff. Try a clean build, or actually deleting the app from the simulator (by holding down on a home screen icon until it wiggles, then X-ing it).

iPhone 模拟器缓存东西。尝试一个干净的构建,或者实际上从模拟器中删除应用程序(通过按住主屏幕图标直到它摆动,然后 X-ing 它)。

回答by Anmar

With the project open Goto xcode > Product > Clean

随着项目的开启 Goto xcode > Product > Clean

回答by Zorayr

Navigate to the project folder, go to Resources folder and delete the folders called splash and icon(do this from both from Xcode and Finder). Also delete the app from either the device or the simulator by pressing on it and x-ing it out then go to Product->Clean.

导航到项目文件夹,转到 Resources 文件夹并删除名为 splash 和 icon 的文件夹从 Xcode 和 Finder执行此操作)。也可以从设备或模拟器中删除应用程序,方法是按下它并删除它,然后转到Product->Clean

I know this was very painful, but now you can set the new icons and launch images from Xcode.

我知道这很痛苦,但现在您可以设置新图标并从 Xcode 启动图像。

Good luck.

祝你好运。

回答by Thompson

Are you looking for an image named "Default.png" (or whatever suffix)? When assigning an image to the default launch, Xcode makes a copy and renames it "Default".

您是否正在寻找名为“Default.png”(或任何后缀)的图像?将图像分配给默认启动时,Xcode 会制作一个副本并将其重命名为“默认”。

回答by Codr

Check that the image is not in the project folder anywhere, also ensure that in the info.plist there is no value relating to launch image.

检查图像是否不在项目文件夹中的任何位置,还要确保在 info.plist 中没有与启动图像相关的值。