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) Displaying Our Weather Data Creating the User Interface

Joel Lithgow
Joel Lithgow
7,414 Points

New errors randomly on all projects?!

So I log on to treehouse open up the new tutorial and then open up Xcode to continue where I left of and all of a sudden theres 4 new errors, 3 of which saying I didn't unwrap some optionals and another one in the AppDelegate file saying "error with domain". I opened up another project "Random Corny Jokes" which I haven't opened in a while and the last time I went on it it was working 100% correctly but now it suddenly got errors to about unwrapping optionals and 2 more things in the AppDegelate file. Did I accidentally hit some button or is this an update or what?

Have you recently updated to XCode 6.1?

Joel Lithgow
Joel Lithgow
7,414 Points

Yes I have, found the error. I needed to replace it with...

error = NSError.errorWithDomain(domain: "YOUR_ERROR_DOMAIN", code: 9999, userInfo: dict)

but thanks for the help tho :)