Xcode iPhone模拟器没有';我无法连接到互联网。如何设置plist.info文件?
我有一个iPhone模拟器,应该使用电脑的Wi-Fi,但http设置中的某些东西不允许它 在调试期间,我看到以下错误消息:Xcode iPhone模拟器没有';我无法连接到互联网。如何设置plist.info文件?,xcode,http,ios-simulator,wifi,Xcode,Http,Ios Simulator,Wifi,我有一个iPhone模拟器,应该使用电脑的Wi-Fi,但http设置中的某些东西不允许它 在调试期间,我看到以下错误消息: App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file. 这是我的plist.info文件。有
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
这是我的plist.info文件。有什么想法改变什么才能连接互联网吗
编辑:
我在网上的某个地方看到,添加此代码可以解决问题:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key><true/>
</dict>
NSAppTransportSecurity
NSAllowsArbitraryLoads
但是如何向该文件添加xml?我看不到那种背景。这里是我看到它的地方: