user1501961
user1501961

Reputation: 868

plist not copied to bundle

I have a few plist in my project, and I have added them to the target and "Copy bundle resource".

For some reason, they do not get copied to the app package. I looked into the package content of the app in the simulator, everything but the plist files is copied.

(They are not in sub-directory; they are directly in the Resources group)

I tried cleaning, reinstalling..

Why is that?

Turns out there are some null scripts in my project build rules which block the plist files from being copied over!

Upvotes: 0

Views: 542

Answers (2)

user1501961
user1501961

Reputation: 868

Turns out there are some null scripts in my project build rules which block the plist files from being copied over!

Upvotes: 1

delannoyk
delannoyk

Reputation: 1224

Check that the file is copied in the bundle resources by :

1/ Clic your project name in Xcode,

2/ Go to your target name,

3/ Build Phases,

4/ In the "Copy Bundle Resources", check that your plist is added.

If not, add it with the "+" button.

Upvotes: 1

Related Questions