I created this playground file in either Xcode 25 or 26. I deleted old instances of Xcode after installing xcode 27.2.
Opening it in Xcode 27 seemed to be fine. but when I selected 'New Playground Page' in the project explorer, then tried to rename the file, it gave this error.
The folder is also a git repo. The only time I can successfully rename the file is when I turn off 'Enable source control' in Xcode settings. After I rename the file. I can re-enable this flag and all works as expected.
This seems like a defect to me.
The full error is:
An unknown error occurred.
Domain: com.apple.dt.SourceControlErrorDomain
Code: -1
Recovery Suggestion: failed to read index: '/Users/#######/ios_dev/DSA_in_Swift/.git/index' no longer exists (-1)
User Info: {
DVTErrorCreationDateKey = "2026-11-30 02:47:11 +0000";
"com.apple.dt.sourcecontrol.UnderlyingErrorString" = "failed to read index: '/Users/#######/ios_dev/DSA_in_Swift/.git/index' no longer exists (-1)";
}
Domain: com.apple.dt.SourceControlErrorDomain
Code: -1
Recovery Suggestion: failed to read index: '/Users/#######/ios_dev/DSA_in_Swift/.git/index' no longer exists (-1)
User Info: {
DVTErrorCreationDateKey = "2026-11-30 02:47:11 +0000";
"com.apple.dt.sourcecontrol.UnderlyingErrorString" = "failed to read index: '/Users/#######/ios_dev/DSA_in_Swift/.git/index' no longer exists (-1)";
}
An unknown error occurred.
Domain: com.apple.dt.SourceControlErrorDomain
Code: -1
Recovery Suggestion: failed to read index: '/Users/#######/ios_dev/DSA_in_Swift/.git/index' no longer exists (-1)
User Info: {
"com.apple.dt.sourcecontrol.UnderlyingErrorString" = "failed to read index: '/Users/#######/ios_dev/DSA_in_Swift/.git/index' no longer exists (-1)";
}
Domain: com.apple.dt.SourceControlErrorDomain
Code: -1
Recovery Suggestion: failed to read index: '/Users/#######/ios_dev/DSA_in_Swift/.git/index' no longer exists (-1)
User Info: {
"com.apple.dt.sourcecontrol.UnderlyingErrorString" = "failed to read index: '/Users/#######/ios_dev/DSA_in_Swift/.git/index' no longer exists (-1)";
}
System Information
macOS Version 27.2.1 (Build 26B131)
Xcode 27.2 (25400.63.5) (Build 27B52)
Timestamp: 2026-11-29T21:47:11-05:00