Recognizing Code within #if and #endif preprocessor statements

I have the following preprocessor directive set in various places in my code:

#if !TARGET_IPHONE_SIMULATOR

//Code to do stuff here if on the actual hardware

#endif

AppCode does not recognized the code in here.  It seems to treat it as a comment section; auto complete does not work, no shortcuts work, etc.  I do not have this problem in xCode.

I did some looking and I cannot find a setting to modify this behavior or any suggestions via Mr. Google.  Does anyone here know how to tell AppCode to treat the code inside these preprocessor statements as code like xCode does?

Thanks!

Mark

0

Is your current target is iOS Device? AppCode knows about current defines and greys out code that will not compile.

0
Avatar
Permanently deleted user

Yes, thank you.  I created a new configuration in AppCode and set it to my device.  It picked it up right away.

Cheers,

Mark

0

请先登录再写评论。