Code Block #if DEBUG ... #endif
So in the project editor I added a user-defined setting
Wasn't sure exactly how to label and value, so I've tried
So I've tried it as (under user-defined)
MYSCENE MYSCENE
MYSCENE 1
MYSCENE DEBUG
And yet I can't get #if MYSCENE to work.
Any thoughts?
This is what I want:
#if MYSCENE
print ("\(GameScene Complete)")
#endif
Right, this doesn't work because your print statement is in Swift, and GCC_PREPROCESSOR_DEFINITIONS only applies to C languages.adding MYSCENES=1 to : GCCPREPROCESSORDEFINITIONS
does not work
When you modify this setting in Xcode, you should get a popover in the Build Settings table, and you can add multiple entries to this setting with the plus button.adding MYSCENES to SWIFTACTIVECOMPILATION_CONDITIONS
does work, however I can only add one. when I add MYSCENES, it works. But if try to add another, it over writes the MYSCENES