All Xcode projects showing up in source control navigator.

This just started happening today out of nowhere. Instead of only the project I’m working on appearing in Source Control, every project inside my Xcode projects folder is now showing up in the Source Control navigator. This is happening in both the Changes and Repositories tabs.

Answered by Etresoft in 880878022

Git repos can be big source of this problem. But there's one more to check.

Xcode projects actually consist of two parts - the project and the workspace. The source code integrations are based on the workspace. Xcode uses a shared workspace by default. But you can create a dedicated workspace file for your project and then just open that file instead of the project file.

Hi! Could you check whether you've created a git repo in a parent folder relative to your projects? For example, in your home folder. When a project is opened in Xcode, it searches all parent folders for a git repo, so that it is able to correlate workspaces that span multiple projects, and this could be triggering that logic.

Accepted Answer

Git repos can be big source of this problem. But there's one more to check.

Xcode projects actually consist of two parts - the project and the workspace. The source code integrations are based on the workspace. Xcode uses a shared workspace by default. But you can create a dedicated workspace file for your project and then just open that file instead of the project file.

All Xcode projects showing up in source control navigator.
 
 
Q