xcode设置允许HTTP请求

时间:2024-11-22 21:29:05

1、打开工程之后找到项目文件下的info.plist文件

xcode设置允许HTTP请求

2、点击information Property List右侧的加号,然后点击.

xcode设置允许HTTP请求

3、上一步之后选择App Transport Security Settings添加,类型是Dictionary.

xcode设置允许HTTP请求

4、点击App Transport Security Settings展开,然后点击右侧的加号.

xcode设置允许HTTP请求

5、添加Allow Arbitrary Loads属性,类型是Boolean,默认是NO

xcode设置允许HTTP请求

6、点击右侧的箭头选择YES即可完成设置,也可以直接双击编辑填写YES

xcode设置允许HTTP请求
© 手抄报圈