24

Every so often the project navigator/left panel is stuck at a fixed width. This is very annoying when I have extensions in separate files named MainViewController+<Extension name>, because the <Extension name> is truncated.

Can't resize project navigator

PhotoSlide... what???

Pressing the "Hide or show the Navigator" button doesn't do anything either.

Press expand button in top left

Quitting Xcode and restarting works. But this takes time, and I lose my place. Is there any other way to fix the stuck width problem?

5
  • i tried the same case but it is already working for me. Xcode 12.3
    – zeytin
    Jan 22, 2021 at 19:48
  • @zeytin yeah usually it works. I think it only glitches when I switch between monitors or something, but I come across this a couple times every day
    – aheze
    Jan 22, 2021 at 20:02
  • 2
    I found that this happens when I don't resize the Navigator after opening a project and then only after a period of time. If I open a project and then immediately expand the Navigator, it greatly reduces the occurrence. It doesn't happen immediately, there seems to be a timeout threshold when the bug manifests itself. This explains why it passed their automated testing, but wow, they have had 4 releases and its still not fixed.
    – J. Edgell
    Feb 2, 2021 at 2:28
  • This seems to be related to the debugger as that's when my locking starts to occur. Really wish there was a better solution than the accepted answer.
    – kanso
    Mar 12, 2021 at 16:30
  • I see the same issue here. @Senseful's solution did work for me. Btw, is this an Xcode bug?
    – Castor
    May 4, 2021 at 8:52

6 Answers 6

19

Please follow these steps if you don't want to reopen the Xcode everytime:

  1. Right-click (or control-click) on any file
  2. Select Open in New Window
  3. And ta-da! You can now resize the project navigator freely!

Performing the above steps

6
  • Unfortunately this doesn't fix the window that's already open. Hoping for a better solution or a fix from Apple.
    – kanso
    Mar 12, 2021 at 16:31
  • 1
    How did you discover this?
    – Akif
    Mar 25, 2021 at 6:59
  • 4
    Use Command + T to open a new tab, you should be able to resize in the new tab, and close the other tab.
    – Paul Solt
    Apr 7, 2021 at 18:13
  • 2
    I submitted a Feedback issue: (Please duplicate) "Xcode Project Navigator Panel Gets Stuck at a Specific Size and Wont Resize" FB9071658
    – Paul Solt
    Apr 7, 2021 at 18:13
  • 1
    @PaulSolt that works very well. Post it as an answer?
    – aheze
    Apr 8, 2021 at 17:12
17

Instead of opening a new window, just use a tab:

  1. Open a new tab (+T)
  2. Close the old one
2
  • Paul Solt also said this, but thanks for posting it as an answer! It works better than opening a new window
    – aheze
    Apr 9, 2021 at 21:52
  • 2
    I submitted a Feedback issue: (Please duplicate) "Xcode Project Navigator Panel Gets Stuck at a Specific Size and Wont Resize" FB9071658
    – Paul Solt
    Apr 10, 2021 at 21:37
1

This also annoyed me....finally I clicked around and found the show/hide navigator icon on the very top left next to the os icons and clicked it...after that it could resize.

it is to the left of the play button fyi.

0
1

I have had success by re-sizing the entire Xcode window - make it smaller then larger and the navigator becomes resizable again.

1

Sad to say it, but restarting Xcode worked for me..

1
  • 1
    OP said: "Quitting Xcode and restarting works. But this takes time, and I lose my place. Is there any other way to fix the stuck width problem?"
    – Eric Aya
    Mar 25, 2021 at 13:51
1

Here is another workaround. When the navigator gets stuck or locked, click on the "Debug" navigator (or View > Navigators > Debug menu item). Voilà, you now should have the ability to resize.

NOTE: You may have to do this a couple times by selecting another navigator or two and then re-selecting the debug navigator.

UPDATE: This doesn't work reliably. @Senseful has the best solution so far.

enter image description here

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.