How can I get an environment variable from Xcode in my app

后端 未结 2 1243
不思量自难忘°
不思量自难忘° 2021-01-04 17:08

I have installed the Xcode plugin for XcodeColors from robbie hanson. (see https://github.com/robbiehanson/XcodeColors)

If I test it in a playground

         


        
2条回答
  •  佛祖请我去吃肉
    2021-01-04 17:33

    Edit your scheme -> Select the "Run" section -> Select "Arguments" tab -> Add the environment variable.

    Be careful, environment variables are not set if you run the app without XCode.

提交回复
热议问题