简体   繁体   English

iOS 9模拟器无法正常工作

[英]iOS 9 simulator not working

I downloaded Xcode 7 on my mac but it seems the iOS 9 simulator does not have internet connection, I tried "Reset Content and Settings" and I restarted the simulator and Xcode but it doesn't seem to work, 我在我的Mac上下载了Xcode 7,但似乎iOS 9模拟器没有互联网连接,我尝试了“重置内容和设置”,我重新启动了模拟器和Xcode,但它似乎不起作用,

Any solutions ? 有解决方案吗 Thank you 谢谢

try adding this to your info.plist file 尝试将此添加到info.plist文件中

在此输入图像描述

heres a link to the Apple Dev forum on the issue: https://forums.developer.apple.com/thread/3544 下面是关于该问题的Apple Dev论坛的链接: https//forums.developer.apple.com/thread/3544

Have you checked your debugger? 你检查过调试器了吗?

Are you getting Transport security has blocked a cleartext HTTP (http://) 您是否收到传输安全已阻止明文HTTP(http://)

If so look at your info.plist and set your NSAllowsArbitraryLoads to YES. 如果是这样,请查看info.plist并将NSAllowsArbitraryLoads设置为YES。 If you don't have they key add this to your plist file. 如果您没有密钥,请将其添加到plist文件中。

<key>NSAppTransportSecurity</key>  
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM