Xcode build error

Joined
Oct 2, 2010
Messages
2
Reaction score
0
Points
1
I'm running Leopard OSX 10.6.4 on a macbookpro. I wanted to write a simple c program. I've downloaded xcode from the developers web site. Just to make sure things work properly I tried to build the HelloView program and received the following error:

"GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file main.m)"

What do I need to change/fix?
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
I am by no means an Xcode pro but if you go to Project > Select Active SDK, are you given the option to change to the "Mac OS X 10.6 (Base SDK)"?
 
OP
D
Joined
Oct 2, 2010
Messages
2
Reaction score
0
Points
1
build error now fixed

Found the miscreant in the preferences - changed Project - Edit Project Settings from 10.4 to 10.6. XCode must have copied a setting from my previous 10.4 OS. All now appears to work properly. Thank you for pointing me in the right direction.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top