I want to have a compiler (pre-compiler) directive in my objective-C class to distinguish between the simulator build and the device build.
#if SIMULATOR call testModule(); #else call productionModule(); #endif
Is there such a #directive in X-code for the iPad/iPhone?
#if TARGET_IPHONE_SIMULATOR
// simulator code
#else
//device code
#endif
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With