在我的应用程序上显示错误的启动图像.尝试以多种方式替换它 [英] Displaying the wrong launch image on my app. Tried to replace it in several ways

查看:28
本文介绍了在我的应用程序上显示错误的启动图像.尝试以多种方式替换它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用的启动图片有问题.在开发的早期,我添加了一个示例图像作为启动图像.现在,当应用准备发布时,我无法更改启动图像.

I have a problem with my app´s launch image. Early on in the development I added a sample image as launch image. Now when the app is ready for release, I can’t change the launch image.

我尝试在项目摘要中的 xcode 中更改它,从项目文件中删除文件并用具有正确名称的新图像替换这些文件.没运气.它仍然在所有设备上显示错误.

I have tried changing it inside xcode in the project summary, deleting the files from the project file and replacing the files with the new image with the correct name. No luck. It still displays wrong on all devices.

我什至在项目中都没有图像了.

I don’t even have the image in the project anymore.

这里有没有人知道怎么回事,或者经历过这样的事情?

Is there anyone in here who knows what’s wrong, or have experienced anything like this?

发布图片适用于 iPhone 和 iPad,纵向.

The launch image is for iPhone and iPad, portrait.

推荐答案

返回到尝试替换图像之前.用新的图像文件替换图像文件.

Go back to before you tried to replace the image. Replace the image file with your new one.

啊,但这没用,对吧?这是问题:

Ah, but that didn't work, right? Here's the catch:

  1. 清理您的构建文件夹.构建过程可能并不总是选择您的新启动映像.(查看产品菜单时按住Option,或删除~/Library/Developer/Xcode/DerivedData的内容.)
  2. 从模拟器和/或手机中删除应用.应用安装程序通常不会复制新映像.

(这两个步骤并不总是必要的,但如果它们都需要,它们必须按此顺序执行,我只是按照列出的方式执行它们.)

(These steps are not always both necessary, but since they must be performed in this order if they're both needed, I just do them both as listed.)

原因如下:

  1. 当您构建时,Xcode 会将属于您产品的各种文件复制到 DerivedData.这可能并不总是将更改的文件复制到现有文件上.
  2. 当您安装到模拟器或设备进行调试时,这是另一个文件副本,它可能并不总是将更改的文件复制到现有文件上.

请注意,手机上的 App Store 安装程序在安装方面做得更好,您不会像这样获得部分安装.但是,除非您能向自己证明您的应用程序是使用正确的映像构建的——也就是说,你在 #2 中失败了,而不是在 #1 中——否则我不会相信这一点.

Note that the App Store installer on the phone does a better job of installing, and you won't get partial installs like this. However, until you can prove to yourself that your application has been built with the right image — i.e. that you're failing in #2, not #1 — I wouldn't trust this.

这篇关于在我的应用程序上显示错误的启动图像.尝试以多种方式替换它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆