Source Control Navigator can be show one project usually. But sometimes show multiple project on Source Code Navigator. Why?☹️

Before fixed(Left image): Appear 2 projects, After fixed(Right image): Just one project.

It was happen when add file from another project. ex. image file copy from other project. In this situation, file path of copied file is heading to the original project. file not copied.

To check what file is invalid:

1. Open the Terminal.
2. Change directory to the ***.xcodeproj/
3. cat project.pbxproj | grep ???(contaminated project name)
4. Remove reference that files.
5. Project reopen.

I hope this will help🙂