Editing Info.plist possible programmatically?

Ambili B Menon picture Ambili B Menon · Oct 10, 2012 · Viewed 17.3k times · Source

I have set my Facebook-AppId in the Info.plist. But I wish to edit it because its dynamic. How shall I do it programmatically?

Answer

Jigar Pandya picture Jigar Pandya · Oct 10, 2012

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