Xcode Environment Variables Not Present During Archive

后端 未结 1 454
无人共我
无人共我 2021-02-07 06:22

I have an iOS application that has a TestFlight build scheme. In this scheme I have setup an environment variable called TESTFLIGHT with a value of 1 set in the \"Run\" tab. Als

相关标签:
1条回答
  • 2021-02-07 07:28

    Environments variable are set only if you run the app from Xcode. If you run the same app from the device directly by tapping the icon, they won't be set. They are not part of the app. As their name imply, they are part of the environment, that Xcode sets up specifically before running them. (If you were developing on the Mac, you could set them in a shell before launching an executable, but that is not possible on the iPhone.)

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