I can edit a plist programatically but I would like to modify the plist ONLY per session and I'm hoping there's a better way to accomplish what I'm wanting to do. Here's what I'm hoping to accomplish
When _DEV
is defined (#define _DEV
) I want the following plist variable to change:
NSAllowsArbitraryLoads
from NO
to YES
Reason being because our dev server doesn't have an https
certificate, but when _DEV
is not defined I want the app to only allow https
activity.
As of now I manually have to change this value in my plist, which is fine, but I'd prefer to have this be dynamic. Is the only way to modify the plist or is there another way to change this value during runtime?