【问题标题】:Three20 error with xcode 4.0.2xcode 4.0.2 出现 Three20 错误
【发布时间】:2011-07-21 11:58:08
【问题描述】:

我得到这个错误:

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

运行自定义 shell 脚本“lint”

PhaseScriptExecution Lint /Users/Nasser/Library/Developer/Xcode/DerivedData/abc-fgspuusakfyzczfehhbduewymfmp/Build/Intermediates/Three20Core.build/Debug-iphonesimulator/Three20Core.build/ 脚本-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/Debug-iphonesimulator/Three20Core.build/Script-668E63EA131A42F500ACE4AB。 嘘

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

【问题讨论】:

    标签: xcode4 three20


    【解决方案1】:

    你需要安装python。

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

    sudo port install python26 python_select
    sudo python_select python26
    

    【讨论】:

    • 我有一个新的 iMAC 并且已经安装了 python。在 Xcode 4.02 上构建 Three20 时出现此错误
    【解决方案2】:

    我自己想出来的。

    我在每个 Three20 项目中将“构建阶段 > lint > shell”中的行更改为: /usr/bin/env /opt/local/bin/python2.6 ../scripts/lint

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多