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) Concurrency Writing Concurrent Networking Code

Tal Zion
Tal Zion
6,234 Points

I don't see the documentation on the NSURL Library, and xCode does not suggest this library. It does compile though.

I don't see the documentation on the NSURL Library, and xCode does not suggest this library. It does compile though. What may be the problem?

5 Answers

Tal Zion
Tal Zion
6,234 Points

Thanks to Paul Gergely, problem was fixed. Please see simple answer below:

It's a bug, I'm having the same issue. Exit Xcode and delete Derived Data folder here:

~/Library/Developer/Xcode

Then restart Xcode and you should see the autocomplete working again. This solved it for me. Hope it helps.

I also found another answer saying that you only have to delete the ModuleCache folder but didn't try this. I deleted the whole derived data folder.

Jason Wayne
Jason Wayne
11,688 Points

Not too sure if I follow. But NSURL is a class object, not a library.

Tal Zion
Tal Zion
6,234 Points

Apologies for the confusion, xCode doesn't auto complete NS... Class Object. Checked the preferences, and all check boxes are ticked for Code completion.

Thank you for your help.

Jason Wayne
Jason Wayne
11,688 Points

Ahhh...I see. I think it's just an Xcode issue. Sometimes Xcode do not autocomplete for me for anything at all.

Tal Zion
Tal Zion
6,234 Points

Thanks :-). Quite a pain :/, I am in the closures with the weather app and a lot to write. Can I fix this somehow?

Also, I find that the NS Class objects that I use are black instead of purple.