开发者

Get user directory in Xcode build script

开发者 https://www.devze.com 2023-01-14 17:06 出处:网络
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 e

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

精彩评论

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