I have a main "app" folder that's the root of the git repository. Inside here, I have "ios-app" folder where my Xcode xcworkspace resides among other folders like "android-app", "backend", etc. Surprisingly, Xcode does show the status of the files (i.e. M for modified) and I am able to use Fetch Changes menu option, but I am unable to either commit with Xcode or view the file in the code review editor.
Error when opening code preview:
The source control operation failed because the file “...” could not be found.
Make sure a valid file exists in the repository and try again.
Error when committing:
The working copy “...” failed to commit files.
error: pathspec 'app/ios-app/DataModel/EventMutations.swift' did not match any file(s) known to git
Nothing interesting in Console app, but the below details may be relevant:
[MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-17220/IDEKit/CommandsAndSelection/IDEMenuBuilder.m:203
Details: Unknown submenu: "Xcode.IDEPegasusSourceEditor.MenuDefinition.SourceCodeAuxiliaryEditorMenuItem3" in menu: "Xcode.IDEPegasusSourceEditor.MenuDefinition.Editor"!
Object: <IDEMenuBuilder>
Method: +_menuItemForMenuItemElement:inMenuWithIdentifierUsedForDebugging:forViewController:fillingExtensionIdToMenuMap:
Thread: <NSThread: 0x7fb3aa517540>{number = 1, name = main}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
At one point I did rename my folder from "iOS-app" to "ios-app" so to preclude the case that this might be git's case sensitivity, I did run git config --global core.ignorecase true, but this does not resolve the issue.
I have also tried to remove the project from Xcode's "Welcome to Xcode" page and add them back in case this affected how the gitpath is determined.
All file paths in Xcode seem correct and "Show in Folder" option always works.
I am also able to correctly view the git project in the Source Control Navigation:


