Displaying the wrong startup image in my application. Tried to replace it in several ways

I have a problem with the launch image of my application. At the beginning of development, I added a sample image as a launch image. Now that the application is ready for release, I cannot change the startup image.

I 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. Bad luck. It still does not display correctly on all devices.

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

Is there anyone here who knows what happened or experienced something similar?

Launch image for iPhone and iPad, portrait.

+6
source share
5 answers

Go back before trying to replace the image. Replace the image file with a new one.

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

  • Empty the build folder. The build process may not always raise your new startup image. (Hold the Stick button while viewing the Product menu or delete the contents of ~ / Library / Developer / Xcode / DerivedData strong>.)
  • Remove the application from the simulator and / or phone. Application installer does not usually copy a new image.

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

That's why:

  • When you create, Xcode copies the various files that are part of your product to DerivedData. This may not always copy modified files on top of existing files.
  • When you install on a simulator or device for debugging, this is another copy of the file that may not always copy modified files on top of existing files.

Please note that the App Store installer on your phone does a better job of installation, and you won’t get a partial installation like this. However, until you can prove to yourself that your application was built with the correct image - i.e. That you fail in # 2, not # 1 - I would not trust this.

+8
source

In addition to deleting the received data as part of the clean, I found that this was not enough to remove the application from the test device, I also had to reboot the device.

+3
source

Nothing worked for me until I completed the following steps:

  • Go to project files in xcode
  • Open the product folder
  • Right click on your .app product.
  • Choose show in finder
  • Go to 3 levels to build a folder
  • Delete this build folder
  • Build
  • What he

You can also try both approaches to deleting files from

~ / Library / Developer / Xcode / DerivedData p>

Good luck

0
source

I am using Xcode 8.2.1, many targets and asset directories. I could not reliably install a set of application icons or launch an image to configure any purpose.

If my image sets are called globally unique for the workspace, I have no problem specifying the correct one.

If the image specified in different directories has the same name, that is, AppIcon, LaunchImage, XCode, it seems, selects a set of images from the directory of the first directory in alphabetical order.

So, my solution was to name each set of images in each asset catalog with a prefix of the name of the asset catalog. Thus, it is organized and globally unique.

0
source

For Xamarin users, the only solution I could find in this problem was the following:

  • Remove the application from the device / simulator
  • Reboot device / simulator
  • Application Deployment and Launch

Uninstalling the application, cleaning the assembly, deleting the bin and obj directories, and rebuilding do not work. The device / simulator must be restarted to forget the old cached image.

As Stephen Fisher points out, this will not happen for a proper installation from the App Store, where he "does a better job of installation."

0
source

All Articles