Disable App Transport Security in Xcode 9.2?

前端 未结 2 1194
暖寄归人
暖寄归人 2021-02-20 12:15

I cannot disable App Transport Security (ATS) in Xcode 9.2. I have been (for years) disabling ATS when running builds against my local server environment like so:

Transp

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-20 12:40

    On the navigator on the left-hand side of the screen in XCode, click your main project file, in which all the files and folders are stored. Click on the Info tab. Under "Custom iOS Target Properties", you used to see an option to change the App Transport Security Settings (ATS). It is not explicitly stated, but still available.

    As you mouse over the options, you should see a + in a small circle. Click on it. XCode will prompt you to create an "Application Category". IN that list that appears, scroll up and select "App Transport Security Settings".

    Click on that option. Once that is created, it should prompt you to change the BOOL value (default should be "NO"). At the far right, you should see a set of up and down arrows. Click on this to change the BOOL to yes.

提交回复
热议问题