Does 'C' Backend require Xcode?

Just starting out? Need help? Post your questions and find answers here.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Does 'C' Backend require Xcode?

Post by davido »

I have been happily using PureBasice 6.00LTS 'C' Backend since it arrived.

Today it stopped compiling with the error below.
Has anyone go any suggestions as to how this can be corrected?

PureBasic - Assembler error


xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
Apparently because The ‘gcc’ command requires the command line developer tools.
DE AA EB
User avatar
idle
Always Here
Always Here
Posts: 5042
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Does 'C' Backend require Xcode?

Post by idle »

I don't know as I don't run a mac but what are you doing that's different.
Are you importing any 3dr party code?
WilliamL
Addict
Addict
Posts: 1214
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Re: Does 'C' Backend require Xcode?

Post by WilliamL »

You can just install the 'Developer Tools' and not use XCode. When you fist run XCode it asks if you want to install them and that is an opportunity to install them. There are other methods but you'd have to Google it.

Otherwise, maybe you have some assembler code in your code, it won't run in 'C', or maybe try taking out (one-by-one) any 'Import' statements etc.
MacBook Pro-M1 (2021), Sonoma 14.3.1 (CLT 15.3), PB 6.10b7 M1
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Does 'C' Backend require Xcode?

Post by davido »

Thank you both for your comments.

@idle
I must admit that this was rather a shock; not too easy to think logically. However, in the intervening 24 hours I am sure that the program I was working on compiled perfectly just before I closed down on Wednesday. When I tried to compile the same program, on Thursday evening, the problem occurred. Clearly you are right and something has changed but I haven't yet worked out what it was. :)

@WilliamL
I am sure I saw comments by Fred that XCode would not be required.
Before I decide to re-install everything I'll follow your good advice and install Xcode.
DE AA EB
User avatar
fsw
Addict
Addict
Posts: 1572
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Re: Does 'C' Backend require Xcode?

Post by fsw »

With every update of macOS there is also a new version of Xcode.
If you update Xcode you have to update the command line developer tools at first start of the new version of Xcode.

I am to provide the public with beneficial shocks.
Alfred Hitshock
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Does 'C' Backend require Xcode?

Post by davido »

@William L,
Did what you suggested: It works ok now. :D

@fsw,
I didn't know that. :oops:

Thank you all for your help. It is very much appreciated. :D
DE AA EB
Post Reply