How to determine at run-time if app is for development, app store or ad hoc distribution?

后端 未结 5 542
半阙折子戏
半阙折子戏 2020-12-07 09:00

Is there a way to determine programmatically if the currently running app was built and signed for development only or whether it was built for distribution? And can one det

5条回答
  •  日久生厌
    2020-12-07 09:19

    #if (DEBUG)
    #define SERVER @"aaaa.com/dev"
    #else
    #define SERVER @"aaa.com/pro"
    #endif
    

    that's the way i distinguish the debug and release mode ,

    but i have no idea for adhoc or production unless use the provision profile name

提交回复
热议问题