开发者

Get user directory in Xcode build script

Is it possible to access the user directory "~/" in an Xcode build script phase?

Right now I am trying to directly use "~/" but on compilation it complains the 开发者_高级运维directory doesn't exist. Is there another way to get the user directory (or the name of the user folder)?


I would just use the $HOME environmental variable. So for the Application Support folder, you would do:

"$HOME/Library/Application Support"


I figured it out I just used this "$HOME/"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜