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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With