Xcode 16 cant see our project Git repo in Repo Navigator

For a number of years we have managed our iOS projects using Sourcetree and command line Git or Visual Code. I wanted to use the XCode Source control for a more integrated development experience.
However, depite the fact that the Git repo is in the root of the XCode project tree, XCode cannot see that repo in the Source Control panel.

Source Control IS enabled in settings I tried to add the repo using.

Integrate >> New Git Repository.

but Xcode then says there is an existing repository and does nothing. How do I add the existing local repo into the Xcode environment or does it now need to be managed only externally because it was not created using Xcode ?

Thanks

Answered by Liquid-Lemon in 824547022

I have the answer after a lot more searching. The project directory was in /usr/local under a projects directory (required to match team working). When I copied it to my home directory all Source code navigator functions worked as expected. The project directory has full access for Xcode and supports development fine. This is really an Xcode bug .....

And would we have "Sort by date" and "Remove all" buttons for Stashed Changes folder

Not sure what you mean Vladimir ?

No stashed changes ?

Accepted Answer

I have the answer after a lot more searching. The project directory was in /usr/local under a projects directory (required to match team working). When I copied it to my home directory all Source code navigator functions worked as expected. The project directory has full access for Xcode and supports development fine. This is really an Xcode bug .....

Xcode 16 cant see our project Git repo in Repo Navigator
 
 
Q