Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dbrayford

macrumors member
Original poster
Feb 22, 2010
41
0
I am getting the following error message GCC 4.2 is not compatible with the Mac OS X 10.4 SDK (file main.m) after moving from a 10.5 OS to a 10.6 OS.

I am sure it is just a setting in xcode that needs to be changed, but not sure which one. I've changed the project settings base SDK to 10.6, but this doesn't fix the problem.
 
Ah, I just got this error and it turned out to be the target settings.. Now for the $64,000 question - why does the difference exist at all? Or (especially since the project I am working with has only one target) isn't there an option somewhere "logical" to change both settings at once?
 
The Target settings override the Project settings. They allow you to have multiple targets in one project.

e.g. you might build one app for 10.6, and another app for 10.4, each with its own customized target and target settings, all inside one project since they share all the source code files. The project settings will be the default if you add yet another new target (for OS X 10.8, etc.)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.