Best way to Manage Development, Testing, and Production builds with different settings and name

后端 未结 3 1238
借酒劲吻你
借酒劲吻你 2020-12-24 09:05

I\'ve three APIwith different API Keys and some different settings

  • For development or internal testing build - De

3条回答
  •  无人及你
    2020-12-24 09:37

    A simpler and less sophisticated solution would be using different header files for each configuration, and #importing only one of them. This is not automatic, but it's rather simple:

    // You only need to switch the following lines when passing from qa 2 production and back:
    #import "Mode_QA.h"
    //#import "Mode_Production.h"
    

提交回复
热议问题