Editing Info.plist possible programmatically? Editing Info.plist possible programmatically? xcode xcode

Editing Info.plist possible programmatically?


Probably write in info.plist is not good idea and it doesn't work because you are trying to write the dictionary to a .plist file inside your App bundle, which is read only. Thus it would not work and also would have more rejection chances even if you get it done other way.

BTW why Info.Plist only? I mean why you can not have it in other way e.g nsuserdefaults or sql


You can't edit the Info.plist of your app. You don't have write access to that file (assuming you want to release this on the App Store).


The only way to write a plist file is to copy it from the bundle to the document folder of your app.

After that you can write. Here is a good tutorial but there are much more. Just google.http://ipgames.wordpress.com/tutorials/writeread-data-to-plist-file/