Where to set environment variables for app?

后端 未结 1 944
情书的邮戳
情书的邮戳 2020-12-09 02:41

I\'m working with source code that is frozen and cannot be changed; but its ENV aware and expects changes through the ENV. The source code is being used in an Xcode 4/iOS pr

相关标签:
1条回答
  • 2020-12-09 03:16

    You can set environment variables via Xcode Schemes. To edit a scheme, select it in the top bar:

    Editing a scheme in Xcode

    Choose the Run mode and go to the Arguments tab, and there you go...

    Setting environment variables in Xcode

    By default, these settings are also used for the Test and Profile modes.

    0 讨论(0)
提交回复
热议问题