gamersoul
gamersoul

Reputation: 101

adding images to app bundle permanently

I am adding some images that I need to use in my app in Supporting Files folder(Xcode 4.3). But when I transfer that code to some other machine(like to my supervisor) those images are not available as in I have only their names displayed in red color in that list. How can I add them permanently?

Upvotes: 0

Views: 755

Answers (3)

tikhop
tikhop

Reputation: 2087

Put/Copy your images inside xcode's project folder (/Users/SomeUser/mySuperProject/) and then add the images to your project (Supporting Files Group or another group).After that u can use this project anywhere.

Upvotes: 0

Ayman Melhem
Ayman Melhem

Reputation: 493

In the add files windows, and after you select the images, make sure that distination check box is selected, this check box indicate whether you want to copy the selected items into distention group folder, or just you want a reference to these items

so select the check box, and this will copy the items to application bundle permanently

Upvotes: 2

deanWombourne
deanWombourne

Reputation: 38475

The red simply means that XCode can't find the images.

Just because a file appears in a group in Xcode doesn't mean that it's in the same folder as other files in the group :(

I would suspect that you've added images to the group that are somewhere else on your machine. You've then given your boss a copy of your app's folder but that folder doesn't contain those images!

You can see where the files are located in the right hand side inspector when you click on them in XCode.

Upvotes: 1

Related Questions