How to add configurations to Xcode?

前端 未结 3 1518
时光取名叫无心
时光取名叫无心 2020-12-04 21:27

There are no other way, I search a lot. In XCode 3 this is easy, but now..

In the screen above, I have the Build Configuration, so I can chose if I

3条回答
  •  佛祖请我去吃肉
    2020-12-04 21:54

    I had a similar issue where I wanted some special behaviour for beta builds

    These are the steps I took (mostly an expansion of the answer given by @ZhangChn)

    1. Duplicate the Release Configuration and rename it beta.
    2. Added a BETA pre-processor macro to the Beta Configuration under build settings.
      • Make other changes to your build configuration here.
    3. Go into manage schemes and duplicate the main scheme for my project and rename it to Beta.
    4. Edit the new scheme and change the target build configuration to beta (or whatever you named your new build configuration.
    5. ...
    6. Profit!!!!

    Or not, at any rate you should now be able to switch your desired setting simply by changing the scheme you're using instead of mucking about with settings every time.

提交回复
热议问题