Last week I updated my Macboork to MacOs 10.15 (Catalina). Now when I try to compile my program I get an error that my path is not set correctly:
- Code: Select all Expand view RUN
- Symbol not found: _OBJC_IVAR_$_NSFont._fFlags Referenced from: /Applications/Xcode.app/Contents/SharedFrameworks/DVTDocumentation.framework/Versions/A/../../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
in /Applications/Xcode.app/Contents/SharedFrameworks/DVTDocumentation.framework/Versions/A/../../../../SharedFrameworks/DVTKit.framework/Versions/A/DVTKit
make: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
make: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch
I try to set the path using:
- Code: Select all Expand view RUN
- /usr/bin/xcode-select -s /Applications
This gives the next message:
- Code: Select all Expand view RUN
- xcode-select: error: --switch must be run as root (e.g. `sudo xcode-select --switch <xcode_folder_path>`).
So I give next command:
- Code: Select all Expand view RUN
- sudo xcode-select --switch /Applications
But the path is still not correct. What should I do