0

I have manually created a property list (Config.plist) using Xcode 4.3 and saved it in "Supporting Files/Config.plist". However, when building the project and running the app in the simulator, the property list is not copied in the document directory (as supposed) nor any other directory in the simulator.

Any help would be highly appreciated.

Thank you!

AlexR
  • 5,514
  • 9
  • 75
  • 130
  • It's copied into the app bundle, not the Documents directory. – Jason Coco Feb 19 '12 at 18:09
  • 2
    Show us the code where you copied Config.plist into Documents directory. Or have you just dragged it into XCode project and expecting this file to be in documents directory ? No, this file would be in your application bundle. – 0x8badf00d Feb 19 '12 at 18:11

1 Answers1

1

It will go to NSBundle mainBundle by default. You will require to copy that file to document directory. Check my code for copy file to document directory over here: Plist

Community
  • 1
  • 1
Mrunal
  • 13,982
  • 6
  • 52
  • 96
  • Thank you! I was looking for the property list at the wrong place. I found it in the app bundle. – AlexR Feb 19 '12 at 18:15
  • Welcome, If you got the correct answer then can you please upvote and mark correct this answer. Thanks and Enjoy coding :) – Mrunal Feb 19 '12 at 19:04
  • Unfortunately I cannot yet upvote because of my low reputation (I just joined StackOverflow), but would appreciate any vote for myself. :-) – AlexR Feb 19 '12 at 19:49