An application which worked on previous versions of MacOS fails on High Sierra with the following message:
dyld: Symbol not found: _OBJC_IVAR_$_NSScroller._action Referenced from: Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
What change might lead to this issue? (I am not expert in MacOS development) I suspect otool command might help identify changes related to this problem but haven't worked out the right parameters for it yet.
Checking AppKit documentation https://developer.apple.com/documentation/appkit/deprecated_symbols it says NSDrawer is deprecated, is this related?
NSDrawer [deprecated] A user interface element that contains and displays text, scroll, and browser views, in addition to other view subclasses.
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/'
Had to do the following:
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
Now, run the switch command & everything should be well again in the world.
$ sudo xcode-select -switch /Library/Developer/CommandLineTools/
Hope this helps.