xcode 4.0.2 出现 Three20 错误
我收到此错误:
shell 脚本调用错误 Env: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/third20/src/Three20Core
/bin/sh -c /Users/Nasser/Library/Developer/Xcode/DerivedData/abc-fgspuusakfyzczfehhbduewymfmp/Build/ 中间体/Three20Core.build/Debug-iphonesimulator/Three20Core.build/Script-668E63EA131A42F500ACE4AB。 sh
env: python: 没有这样的文件或目录
i get this error:
shell script Invocation Error
Env: python: No such file or directory
run custom shell script "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/
Intermediates/Three20Core.build/Debug-iphonesimulator/Three20Core.build/Script-668E63EA131A42F500ACE4AB.
sh
env: python: No such file or directory
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我自己想出来了。
我在每个 Three20 项目中将“build Phases > lint > shell”中的行更改为:
/usr/bin/env /opt/local/bin/python2.6 ../scripts/lint
i figured it out myself.
i changed in each Three20 project the line in: "build phases > lint > shell" to:
/usr/bin/env /opt/local/bin/python2.6 ../scripts/lint
你需要安装python。
最好的方法是使用 MacPorts。下载并安装 MacPorts,然后在终端中键入以下命令,通过 MacPorts 安装 Python:
you need to install python.
The best way is to use MacPorts. Download and install MacPorts, then install Python via MacPorts by typing the following commands in the Terminal: