Bassman
Bassman

Reputation: 413

location of custom plist file

I have created a plist file for my App. 2 questions:

1) If I have added the plist file to the Xcode project, will the file get automatically bundled and distributed with the App?

2) The Simulator always seems to 'locate' the file upon startup. Even if I manually remove the file from the App's root folder. This is where the Simulator is looking for the file:

/Users/Joe/Library/Application Support/iPhone Simulator/5.0/Applications/28C13BB3-xxxx....

Where should my plist file be located?

Upvotes: 0

Views: 3810

Answers (2)

greenhorn
greenhorn

Reputation: 1107

1) Yes. If Xcode project lists the file, it will be automatically bundled and distributed.

2) You can place your plist file anywhere under the top level project folder. Everything under your top level folder is your project bundle.

What do you mean when you say you remove the file from app's root folder ?

Upvotes: 1

Oscar Gomez
Oscar Gomez

Reputation: 18488

1) Yes it will as long as it is in the Target/Build Phases/Copy bundle resources.

2) It will be located on your application documents directory, you don't really need to worry about it, except you have to add the file to your project and make sure number 1 of this list has been done.

The simulator finds it even after remove, because it keeps state, unless you manually reset the simulator. Therefore it already had a copy of the file in the folder you mention, even if you removed it.

Upvotes: 2

Related Questions