iosswiftcrashlyticscrashlytics-beta

How to tell at runtime whether an iOS app is running through a Crashlytics Beta install


Is there any way to tell at runtime whether an iOS app is running through a Crashlytics Beta install?


Solution

  • What you can do is detect if the app was produced as an Ad Hoc build.
    To do that, add -DADHOC to the "other swift flags" of your Ad Hoc build settings, and use

    #if ADHOC
    #endif
    

    for the beta-specific code.