Symbol not found: _OBJC_IVAR_$_NSScroller._action in High Sierra

I was getting this error because of the active developer directory was unset after MacOS version upgrade. This directory controls which tools are used for the Xcode command line tools (for example, xcodebuild) as well as the BSD development commands (such as cc and make).

Doing the following fixed the issue for me:

sudo xcode-select -switch /Library/Developer/CommandLineTools/

I had to download Xcode (update Xcode) to resolve this issue.

Running this command sudo xcode-select -switch /Library/Developer/CommandLineTools/ did not seem to work for me. But try doing it too.


Same issue for Catalina upgrade.

Verified the old directory...

$ xcode-select -p

> /Applications/Xcode.app/Contents/Developer

But when running the switch directory command, it failed:

$ xcode-select -switch /Library/Developer/CommandLineTools

> xcode-select: error: invalid developer directory '/Library/Developer/CommandLineTools/'

Solution

Had to do the following:

  1. Install xcode-select (which will notify xcode cli dev tools needs to be downloaded & installed)

    $ xcode-select --install
    

    > xcode-select: note: install requested for command line developer tools

  2. Now, run the switch command & everything should be well again in the world.

    $ sudo xcode-select -switch /Library/Developer/CommandLineTools/
    
  3. Profit

Hope this helps.