Popeye
Popeye

Reputation: 12093

Xcode -- delete images are still getting built when building app

I am trying to clean up my app before I submit it for apple approval, but I have an issue. I have delete some unwanted background images but the app seems to think they are still there. I have delete the app completely from the phone but when I build it is still there. The image has been completely remove from the Mac it doesn't exist anywhere not even in the simulator folder

/Users/******/Library/Application Support/iPhone Simulator/5.0/*********/appname.app

I can't seem to figure out whats going wrong.

I have had a look at a few questions like

Xcode- Deleted images appear in simulator

but this doesn't work, I have also tried

Attempting to delete an image from Xcode 4

when it builds it just adds it back in.

Can anyone help? or advice where I can find some help?

Upvotes: 3

Views: 8430

Answers (5)

Yunus Nedim Mehel
Yunus Nedim Mehel

Reputation: 12369

In the project tree click the name of the project name, select targets and build phases tab. There will be a section named "copy bundle resources", if you can see the name of your file, delete it from there. Then follow others' solution to clear the cache and make a clean build.

Edit: Also check Xcode- Deleted images appear in simulator, I guess your question is answered there.

Upvotes: 3

Marco Pace
Marco Pace

Reputation: 3870

Delete it and then, from Xcode, perform that:

  1. Press Shift+Cmd+K
  2. Alt+Shift+Cmd+K

It will empty your cache and clean your build folder.

Upvotes: 16

Greg
Greg

Reputation: 168

Product -> Clean or ⌘-Shift-K.

Upvotes: 3

hchouhan02
hchouhan02

Reputation: 946

i think thats happens because of you are deleting the reference of images so that images are still in the folder of your project so do these 3 things. 1. go to your project folder where it is saved and search those images and if you found those images in that folder than delete them. 2. clean your project. from product->clean 3. delete app from simulator after that try again i think your problem is resolved.

Upvotes: 0

giorashc
giorashc

Reputation: 13713

Have you tried cleaning your project and then building it again ? (It might still used the already built .app file when you uploaded it again to your phone)

Upvotes: 0

Related Questions