In our project we have turned off HTTPS requests and send them as HTTP for internal testing against an API on my local machine. To do this I added this code to the info.plist
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
This allows the app to run with HTTP requests. Obviously this is bad for a live environment as well as unlikely to get app store approval; so I would like to set up code in our production build target to remove this offending code automatically lest we accidentally leave it in. I've done some searching around but can't seem to find any advice online.