Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Self-Destructing Message iPhone App Using Parse.com as a Backend and Adding Users Creating an Account and App on Parse.com

Noah Teshu
Noah Teshu
14,555 Points

The basic data test runs fine on an actual device, but not in the simulator. I am using XCODE 6. How can I fix it?

2014-09-29 21:07:09.223 Ribbit[12629:2235971] Error: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo=0x7fb7b50016b0 {NSUnderlyingError=0x7fb7b3602d20 "The network connection was lost.", NSErrorFailingURLStringKey=https://api.parse.com/2/client_events, NSErrorFailingURLKey=https://api.parse.com/2/client_events, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=57, NSLocalizedDescription=The network connection was lost.} (Code: 100, Version: 1.4.1)
2014-09-29 21:07:09.224 Ribbit[12629:2235972] Attempt at runEventually command timed out. Waiting 600.000000 seconds. 5 retries remaining.
2014-09-29 21:07:09.274 Ribbit[12629:2235957] Error: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo=0x7fb7b5001f90 {NSUnderlyingError=0x7fb7b5317c50 "The network connection was lost.", NSErrorFailingURLStringKey=https://api.parse.com/2/create, NSErrorFailingURLKey=https://api.parse.com/2/create, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=57, NSLocalizedDescription=The network connection was lost.} (Code: 100, Version: 1.4.1)
2014-09-29 21:07:09.274 Ribbit[12629:2235959] Network connection failed. Making attempt 2 after sleeping for 1.045716 seconds.
2014-09-29 21:07:10.449 Ribbit[12629:2235957] Error: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo=0x7fb7b5205980 {NSUnderlyingError=0x7fb7b5203aa0 "The network connection was lost.", NSErrorFailingURLStringKey=https://api.parse.com/2/create, NSErrorFailingURLKey=https://api.parse.com/2/create, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=57, NSLocalizedDescription=The network connection was lost.} (Code: 100, Version: 1.4.1)
2014-09-29 21:07:10.449 Ribbit[12629:2235959] Network connection failed. Making attempt 3 after sleeping for 2.091432 seconds.
2014-09-29 21:07:12.902 Ribbit[12629:2235958] Error: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo=0x7fb7b3592c00 {NSUnderlyingError=0x7fb7b34aae30 "The network connection was lost.", NSErrorFailingURLStringKey=https://api.parse.com/2/create, NSErrorFailingURLKey=https://api.parse.com/2/create, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=57, NSLocalizedDescription=The network connection was lost.} (Code: 100, Version: 1.4.1)
2014-09-29 21:07:12.902 Ribbit[12629:2235956] Network connection failed. Making attempt 4 after sleeping for 4.182864 seconds.
2014-09-29 21:07:17.491 Ribbit[12629:2235956] Error: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo=0x7fb7b5003550 {NSUnderlyingError=0x7fb7b34449e0 "The network connection was lost.", NSErrorFailingURLStringKey=https://api.parse.com/2/create, NSErrorFailingURLKey=https://api.parse.com/2/create, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=57, NSLocalizedDescription=The network connection was lost.} (Code: 100, Version: 1.4.1)
2014-09-29 21:07:17.491 Ribbit[12629:2235971] Network connection failed. Making attempt 5 after sleeping for 8.365728 seconds.
2014-09-29 21:07:25.926 Ribbit[12629:2235982] Error: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo=0x7fb7b35b7a60 {NSUnderlyingError=0x7fb7b34ba700 "The network connection was lost.", NSErrorFailingURLStringKey=https://api.parse.com/2/create, NSErrorFailingURLKey=https://api.parse.com/2/create, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=57, NSLocalizedDescription=The network connection was lost.} (Code: 100, Version: 1.4.1)

3 Answers

Stone Preston
Stone Preston
42,016 Points

I get this error every so often. usually closing the simulator and starting over will fix it. It might be an issue with xcode 6. Its pretty intermittent. so try closing the simulator/restarting xcode and see if it works

Noah Teshu
Noah Teshu
14,555 Points

I can't believe I didn't think to try that first...Looks like it fixed it. Thank you for such a quick response!

Didn't work for me. Any other suggestions?