'Xcode 13.2 “Second Editor”

I have Xcode configured so that option-click on a file will open it in the “second” editor.

enter image description here

This worked in Xcode 13.0 and earlier, but in Xcode 13.2.1 (13C100), I cannot get it to use the second editor at all. Before I file a bug report, are others having the same problem and has anyone discovered a work-around?



Solution 1:[1]

Works fine for me in Xcode 13.2.1, so I can't reproduce the issue. Maybe download that before filing a bug?

enter image description here

(Also, make sure nothing has gone wrong with your keyboard's Option key; yes, I've had problems with that in the past.)

By the way, my favored setting (though not what I used while testing your report, of course) is to have Optional Navigation set to Uses Destination Chooser; it gives so much flexibility as to where the file will be edited!

Solution 2:[2]

Doing additional experimentation, it appears that the problem is unique to a particular project. If I create a new project, the UI works as expected.

I fixed the problem by:

  • exiting Xcode;
  • removing the .xcuserdatad folder within the .xcodeproj package; and
  • restarting Xcode.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2