Is it possible to disable ATS in iOS 9 just for debug environment?

前端 未结 3 1803
忘掉有多难
忘掉有多难 2020-12-01 13:54

I\'m working on a development environment without HTTPS setup. Is it possible to automatically disable ATS just for the development (debug) mode?

3条回答
  •  余生分开走
    2020-12-01 14:31

    Yes, you can configure your project settings to use different Info.plist file for Debug, Release or whatever configuration you use in your project (similar to the way Provisioning Profiles are set), so in your Debug plist you can disable ATS totally.

    Go to Project -> Your Target -> Build Settings -> Info.plist File

提交回复
热议问题