Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Why am I getting a fatal error when I run the code so far in my program?
My forecastURL is being set to nil for some reason. When it reaches the NSData withContentsOfURL method it crashes because it is trying to force unwrap forecastURL when it is nil. However, it should not be nil.
So it turns out the coordinates that I was copying from Google maps were causing the program to break. I typed the coordinates in manually instead of copying it and it worked fine. So further notice to others doing this track, you should probably just type it, don't copy paste
If you copy and paste from Google maps, just remove the space between the coordinates.
Kindly please write your code down so the community can see how you wrote it and help you as quick as possible :)