I\'m working on a development environment without HTTPS setup. Is it possible to automatically disable ATS just for the development (debug) mode?
Another solution. By using INFOPLIST_PREPROCESS = YES and INFOPLIST_PREPROCESSOR_DEFINITIONS = DEBUG=1,
it can be conditional preprocess like C code using #ifdef or #if directly in Info.plist.
UIMainStoryboardFile
Main
#if DEBUG
NSAppTransportSecurity
NSAllowsArbitraryLoads
#endif
UIRequiredDeviceCapabilities
Cons: Unable to open Xcode's property list editor because it is not well-formed XML :(