Page 1 of 1

make error after upgating to MacOs Catalina

Posted: Mon Oct 14, 2019 10:01 am
by plantenkennis
Hello group,

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

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

/usr/bin/xcode-select -s /Applications
This gives the next message:

Code: Select all

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

sudo xcode-select --switch /Applications
But the path is still not correct. What should I do

Re: make error after upgating to MacOs Catalina

Posted: Fri Oct 18, 2019 11:01 am
by Antonio Linares
René,

I have not installed Catalina yet.

I am going to test it and also ask Manuel Alvarez who surely may have tested it already...

A quick solution is coming, don't despair :-)

Re: make error after upgating to MacOs Catalina

Posted: Sat Oct 19, 2019 7:34 am
by plantenkennis
Hello Antonio and Manuel,

Thank you for looking into this problem.

BTW, i am using xcode version 9 (version 9.4.1) because some users of my software use an older version of MacOs and they got an error when I compiled with xcode 10 (software not suitable for this version)

Re: make error after upgating to MacOs Catalina

Posted: Sat Oct 19, 2019 8:09 pm
by Antonio Linares
Steps to use OSX Catalina:

1. xcode-select --install

After this FiveMac working fine! :-)

Re: make error after upgating to MacOs Catalina

Posted: Mon Oct 21, 2019 11:19 am
by plantenkennis
Hello antonio,

I tried this, but gives the same error:

Code: Select all

make
dyld: 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
 
What next?

Where do I find xcodebuild

Re: make error after upgating to MacOs Catalina

Posted: Mon Oct 21, 2019 11:32 am
by Antonio Linares
René,

Please try this:

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

https://stackoverflow.com/questions/196 ... e/19649139

Re: make error after upgating to MacOs Catalina

Posted: Mon Oct 21, 2019 12:18 pm
by plantenkennis
Hello Antonio,

YES, thank you. Back on track again.