does anyone know a good way to, in code, detect if the app is running in development mode or production mode?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That depends entirely on how you choose between development and production mode. Xcode 4, by default, sets the
DEBUGflag when you are running the app under debug. You can create conditional code like so: