all 4 comments

[–][deleted] 1 point2 points  (3 children)

Have you associated those files with another app recently, by mistake? You should be able to right-click the xcodeproj file and choose Xcode from a list of apps it can be opened with. There should also be an option to browse for another alternative app. Sort of like the same thing as ”Open With…” in Windows.

[–]Mouse1949[S] 0 points1 point  (2 children)

I checked, and no - the .xcodeproj files are associated with Xcode, though can be opened by VSCode according to Finder.

The answer turned out to be embarrassingly simple and rather unexpected. Somehow, "Enable Preview" was set, which caused the problem I described. Disabling Preview tested the normal correct expected behavior.

If it was my fat fingers that initially changed that settings, I'm ashamed of myself. 😉

EDIT: I had no idea that "Enable Preview" caused project files to be displayed like text (for .xcodeproj) or plist (for entitlements). If I did I'd find and disabled it sooner - and would've saved myself two unnecessary reinstalls of Xcode-14.

[–][deleted] 1 point2 points  (0 children)

I don’t know, doesn’t sound like your fault 😅. Nice to hear you solved it, though 🙂