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 Weather App with Swift (Retired) Data Modeling With Structures Using Structures to Model Data

What does Error Domain=NSURLErrorDomain Code=-1005 "The operation couldn’t be completed. (NSURLErrorDomain error -1005.)

what does it mean when I get Error Domain=NSURLErrorDomain Code=-1005 "The operation couldn’t be completed. (NSURLErrorDomain error -1005.)

code is exactly like the one on the tutorial.

It wouldn't work, and then it magically started. Today when I am playing with it, it quit. When I print out the error message it gives me the above message.

1 Answer

Jason Wayne
Jason Wayne
11,688 Points

Sounds like a bug to me since it worked and suddenly it quits without you changing the code of the app.

Are you using a simulator? If so, are you using an iOS8 simulator (like iPhone6)? There was a bug with it, and I think many has experience the -1005 error code as well. Perhaps reseting your simulator could help.

It was an issue in the swift.