使用xcode 4.0.2时出现Three20错误

时间:2011-07-21 11:58:08

标签: xcode4 three20

我收到此错误:

shell脚本调用错误 环境:python:没有这样的文件或目录

运行自定义shell脚本“lint”

PhaseScriptExecution Lint /Users/Nasser/Library/Developer/Xcode/DerivedData/abc-fgspuusakfyzczfehhbduewymfmp/Build/Intermediates/Three20Core.build/Debug-iphonesimulator/Three20Core.build/ Script-668E63EA131A42F500ACE4AB.sh

cd / Users / Nasser / Documents / test2 / abc / three20 / src / Three20Core

/ bin / sh -c / Users / Nasser / Library / Developer / Xcode / DerivedData / abc-fgspuusakfyzczfehhbduewymfmp / Build / 中间体/ Three20Core.build /调试-iphonesimulator / Three20Core.build /脚本的668E63EA131A42F500ACE4AB。 SH

env:python:没有这样的文件或目录

2 个答案:

答案 0 :(得分:1)

你需要安装python。

最好的方法是使用MacPorts。下载并安装MacPorts,然后在终端中输入以下命令,通过MacPorts安装Python:

sudo port install python26 python_select
sudo python_select python26

答案 1 :(得分:0)

我自己想通了。

我在每个Three20项目中改变了:“构建阶段> lint> shell”到:   / usr / bin / env /opt/local/bin/python2.6 ../ scripts / lint

相关问题