3

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,

Any solutions ? Thank you

2
  • There are several other steps you can take. e.g. turning of anti-virus, clearing proxy settings, turning off little snitch… Some people have luck removing & readding the network connection in network preferences. Some get it working by plugging in an ethernet cable, some get it working by turning on & off wifi… Commented Sep 18, 2015 at 7:28
  • Alexy what do u mean Simulator not working? for instance if u try to run an app in Debug mode what happens? Commented Sep 18, 2015 at 14:51

2 Answers 2

5

try adding this to your info.plist file

enter image description here

heres a link to the Apple Dev forum on the issue: https://forums.developer.apple.com/thread/3544

Sign up to request clarification or add additional context in comments.

Comments

3

Have you checked your debugger?

Are you getting Transport security has blocked a cleartext HTTP (http://)

If so look at your info.plist and set your NSAllowsArbitraryLoads to YES. If you don't have they key add this to your plist file.

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

3 Comments

I was also bitten by this. In my opinion, it was a bit heavy-handed for Apple to make this change. Not all applications want or need SSL (especially in a development environment).
@Richard, no worries.
@Greg I was too. I'm pretty sure most people will be

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.