Is there a preprocessor instruction to make a XCode build fail? (or pragma_mark or something else)
For instance, I develop an application for 3 different environments including several web URL to fetch. So far I don’t know the URL that will be used for the production environment and I want to insert an instruction in my code to prevent an anticipated build from running with this environment.
My code looks like
#ifdef ENV1
...
#endif
#ifdef ENV2
...
#endif
#ifdef ENV3
#some_instruction_that_prevent_success_build
...
#endif
In other words, I want an instruction that acts as a blocking TODO.
The error preprocessor directive is what you’re after.