Is there any way to know programmatically user is running Appstore version or developer version? Any help will be really appreciated.
Is there any way to know programmatically user is running Appstore version or developer
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.
If you only need to differ between a debug version deployed from Xcode and a release build (ad-hoc or AppStore) you can use the mentioned method of adding a preprocessor macro.
Select your target and select
build settings, search forPreprocessor Macros, underDebugyou can add e.g.DEBUG=1.In your code you can have functionality conditionally compiled by doing something like this: