So you're getting the super annoying "Cannot find ___ in scope" error in Xcode. You've probably tried a bunch of stuff already, but let's go through some troubleshooting steps together!
You must make sure your file path is all good. If you've got files grouped in Xcode, try making real folders on disk to match. Sometimes Xcode gets confused if things don't match up.
If that's not the problem, try cleaning and rebuilding your projet. Xkode's indexing can get all wacky sometimes, and a good old clean-slate build can fix it right up.
If none of this stuff works, can you tell me more about your project setup and the error you're getting? I'll do my best to help you debug it!