Cant rename folder in XCode

Hello, after a 2 week holiday i wanted to work on my application. I just needed to create a new group and rename it to 'Session' but this seems impossible. I have searched 1 hour on Google and i couldnt found anything related or even close to this problem.

This is the error im getting:

An unknown error occurred.
Domain: com.apple.dt.SourceControlErrorDomain
Code: -1
Recovery Suggestion: invalid data in index - extension is truncated (-1)
User Info: {
    DVTErrorCreationDateKey = "2022-11-21 15:45:52 +0000";
    "com.apple.dt.sourcecontrol.UnderlyingErrorString" = "invalid data in index - extension is truncated (-1)";
}
--


System Information

macOS Version 12.6 (Build 21G115)
Xcode 14.1 (21534.1) (Build 14B47b)
Timestamp: 2022-11-21T16:45:52+01:00

This happens when i rename the folder and press 'Enter'.

Raise it as a bug first.

Then... Can you rename the folder in the Finder, and drag it back into Xcode to add it again? (You'll have to sort out target membership I guess, but should be easy.)

try command in terminal: /usr/bin/git reset --mixed HEAD

ref: https://hanleylee.com/articles/xcode-git-crash-workaround/

I am facing same problem and it occurs to me after updating to latest MacOS and updating xcode version.

Cant rename folder in XCode
 
 
Q