I want to use ALog()
and DLog()
instead of NSLog()
. Hence, I followed the instructions given on this link.
Following the instructions, I added DDEBUG
to my OTHER C FLAGS
in my target. But on running it fails and gives following error.
clang: error: no such file or directory:
'DDEBUG'
Command/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
failed with exit code 1
I also want to know that how to check whether Configuration is set to Debug (according to given link I need to check this).
Are you sure that you added -DDEBUG
and not DDEBUG
?
EDIT: To check that your Build Configuration is set to Debug in Xcode 4, click on the name of your app in the toolbar, where it says "Scheme":
Then click Edit Scheme
:
And if it says Debug
under Run (your app).app
you're golden!