执行运行脚本时,Xcode使用错误的PATH

时间:2015-10-28 15:45:18

标签: ios xcode path run-script

当我尝试在Yosemite上的Xcode 7.1中执行运行脚本阶段时,我似乎使用了错误的PATH ......

当我从脚本中回显$ PATH时,我得到以下内容:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

我对如何解决这个问题一无所知,我尝试了一百种不同的解决方案,例如添加自定义构建变量,从终端打开Xcode等等。有什么建议吗?

0 个答案:

没有答案