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