Help with Xcode Errors: "Invalid Redeclaration" and "Cannot Find in Scope"

I’m encountering a couple of issues in my SwiftUI project, and I hope someone here can help me troubleshoot them. I keep getting the error "Invalid redeclaration of 'WelcomeView,'" I am new to swift so I am not exactly sure what it means, if you need my code for both files that I programmed in so far I will definitely share.

Additionally, I’m facing another error: "Cannot find 'LocationManager' in scope." I have a LocationManager class that I’m trying to use, but Xcode is throwing an error saying it can't find it. I’ve confirmed that the LocationManager class is defined and properly imported, but it seems to be unrecognized in my ContentView file.

Has anyone experienced similar issues? How did you resolve them? Are there specific steps I should take to troubleshoot these errors further? Any suggestions for how to ensure my LocationManager is recognized in all relevant files would be greatly appreciated.

Thanks in advance for your help!

That means you already have a object called WelcomeView in your project. This is not allowed since Swift wouldn’t know which WelcomeView you want.

Check the file where LocationManager is defined and in the menu on the right side, check if it’s added a) to any Target and b) the same target as your other file. Also the class cannot be private.