make error after upgating to MacOs Catalina

Post Reply
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

make error after upgating to MacOs Catalina

Post 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
Kind regards,

René Koot
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: make error after upgating to MacOs Catalina

Post 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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: make error after upgating to MacOs Catalina

Post 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)
Kind regards,

René Koot
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: make error after upgating to MacOs Catalina

Post by Antonio Linares »

Steps to use OSX Catalina:

1. xcode-select --install

After this FiveMac working fine! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: make error after upgating to MacOs Catalina

Post 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
Kind regards,

René Koot
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: make error after upgating to MacOs Catalina

Post by Antonio Linares »

René,

Please try this:

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

https://stackoverflow.com/questions/196 ... e/19649139
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: make error after upgating to MacOs Catalina

Post by plantenkennis »

Hello Antonio,

YES, thank you. Back on track again.
Kind regards,

René Koot
Post Reply