The question says it all.
I am aware of NSAllowsArbitraryLoads
that can be taken together NSExceptionDomains
but I am bit confused by this blacklisting approach: I don't want to disable ATS for everything except specific production hosts listed by NSExceptionDomains
because they are subject to change and so I would need to manage their list together with general app configuration where we have 3+ different host types for production. [Of course in a perfect world Apple would suggest us to list the hosts for which we want disable App Transport Security and have it enabled for all other hosts - Not! vice versa]
I also tried to inherit my user-defined setting $(MY_USER_SETTING)
(which can support 3 different values corresponding to Debug/Staging/Release) but it does not play well with non-string types of NSAppTransportSecurity
which is dictionary and NSAllowsArbitraryLoads
boolean – those values just don't inherit my user-defined setting.
Background: I want to be able to see the HTTP trafic of our Debug/Staging configurations using Charles Proxy and as of iOS 9 it requires that ATS to be disabled and I want to make sure that this will not affect our Release configuration in any way!