当前位置: 动力学知识库 > 问答 > 编程问答 >

Read variable value from shell script to iOS code

问题描述:

I know that we can read data from plist to shell script & vice versa. But in my case I want to read a variable defined in shell script to my code.

For example

echo $ENVIRONMENT

echo ${#ENVIRONMENT}

if [ "${#ENVIRONMENT}" == 0 ]

then

{

export ENVIRONMENT="dev1"

}

fi

so my question is that can we read 'ENVIRONMENT' from Xcode (in iOS app)?

分享给朋友:
您可能感兴趣的文章:
随机阅读: