I am trying to figure out how it schemesworks in xcodeand what it is for. I have a cross-platform product built on OS X using an external build system ( scons). I would like to be able to build / debug from xcode, mainly due to character search and debugger. I used eclipse CDTone that basically works well, but has some quirks.
Basically, I can get this to work by creating an empty project and adding the target 'external build system . Then, as part of the Info target, I specify the Build Tool as / usr / local / bin / scons , and the Arguments are the build parameters that I send to scons. Basically, I have the following assembly variables, called $(TARGET)and $(BUILD_TYPE), which differ depending on whether the assembly is debugging or release, so they can be specified as conditional "Assembly Settings" .
The problem is that I would like Menu->Project->Cleanto work. It looks like it Xcode/xcodebuilderuses a variable $(ACTION)to pass this, where $(ACTTION)either 'build' , 'clean' , or some other build actions, see xcodebuild ACTION . Scons is a little different - it has a built-in clean action that is invoked on the command line with scons -c. Therefore, my first thought was to use the conditional “Build Settings” to pass this parameter, but it turns out that the conditional “Build Settings” do not seem to change depending on the build ACTION- only the build architecture and SDK.
" " Xcode/xcodebuilder? , "" xcode scons?