Xcode keeps touching readonly xcschemes on launch

We use Perforce for version control, which means that all files not checked out are readonly. Lately Xcode has started displaying a fixed sequence of these dialogs on every launch:

This means it is trying to modify some readonly file within the xcodeproj. Out of our 60 subprojects this always comes up for the exact same 6.

I have so far uncovered the following:

  • It is really trying to modify the shared xcschemes and not the pbxproj. (If I set those to writable the dialog does not appear.)
  • Actually the files are not changed if I click "Unlock", but the com.apple.provenance xattr flag is removed from them.
  • These xcschemes are of version 1.7 while all others are 1.3.
  • If I change them to 1.3 Xcode still wants to modify them at launch and sets them back to 1.7.

This is very annoying. What is it about these xcschemes that upsets Xcode, and how can I stop these dialogs from appearing?

(One workaround is to keep them checked out dumped to a changelist that I never submit, but that is error prone when I do need to make changes to those, and also is not really possible when jumping between old states of the repo to find the change that broke something.)

Xcode keeps touching readonly xcschemes on launch
 
 
Q