Q:

Why would Xcode still copies images to device even though I removed them from bundle?

I used to store some pictures in my app within the device, and then decided to move them onto a server. However, even though I removed them from my bundle, they are still copied onto my device when I debug my app on it.
I made sure to remove them from the "Copy Bundle Resources" build phase. 
Also, the bundle size without the pictures is 20Mb, and about 400Mb with them, and so is the archive size. I can confirm that when I archive my app now, it is 20Mb large as expected, but when I install it on my device, it occupies 400Mb. 
I'm confused. Any idea what's going on? Thank you.

A:

You can be sure to fix this by performing the following steps.

Command-shift-k = clean targets
Command-option-shift-k = empty caches and clean all targets
Delete app from the device
Restart Xcode

If this doesn't do it, nothing will!
Note: For best result, perform all of these steps before building to the device again.

