user73481
user73481

Reputation: 901

Are extra files in my project compiled into my program?

Lets say I have a bunch of PSD's and other large files that arent being used in my xCode project... Do those get added to the app when I compile? Do I need to store those somewhere else?

Upvotes: 1

Views: 107

Answers (3)

Lou Franco
Lou Franco

Reputation: 89222

If you want to make sure, go to your build directory and open the .app package and see if the files are in there. Right-click on it in the Finder and choose "Show Package Contents"

Upvotes: 0

Becca Royal-Gordon
Becca Royal-Gordon

Reputation: 17861

By default, they will be included. If you don't want that, then do the following:

  1. In the Xcode project window, select all the resources you don't want included.
  2. Hit the big blue i button on the toolbar.
  3. Go to the Targets tab.
  4. Uncheck your app's target.

Incidentally, this also works if you have a code file you don't want compiled in.

Upvotes: 2

Jonas
Jonas

Reputation: 4584

I think you can remove them from your target's "Copy Bundle Resources" if you don't want them in your .app file.

Upvotes: 3

Related Questions