False Error

Hi everybody.
Could you guys help me understand?
The problem: Some error pops up, ("Cannot find 'SideMenuOptionView' in scope"), however, both my Canvas and Simulator display the view as I expected. Simulator can run the scketch as well.

https://github.com/Denis411/For-Community..git

I run Xcode on a 13-inch MacBook Pro 2020. The laptop is connected to an external display. I've tried to restart my Mac.

I'd really appreciate your help.

I just downloaded your project and it is working fine. I am able to build it successfully. No errors.
I assume there might be some problems with your file in Finder or the build Folder.

I think you can do this:

  1. Right click on the SideMenuOptionView file, and Show In Finder. Make sure the file is located inside the folder Side Menu.
    or
  2. In XCode clean the build folder and derived data folder. You can google how to do these in xcode.
    or
  3. Just delete the project on your drive and download the github repo like me to see if it solves the file organization problem.


Good luck!

2 Likes

It worked out. Thanks. I probably relocated my files while developing.