【问题标题】:Mac OS X Terminal error: invalid developer directory '/Applications/Xcode-5.1.1.app'Mac OS X 终端错误:开发人员目录无效“/Applications/Xcode-5.1.1.app”
【发布时间】:2015-12-30 03:46:11
【问题描述】:

我正在尝试使用终端在我的 Mac OS X El Capitan 中设置和安装 theos。我正在关注 iPhoneDevWiki (http://iphonedevwiki.net/index.php/Theos/Setup) 并正确执行每一步,我已经多次完成,但每次我都遇到这个小错误。我已经有了所有依赖项,当我执行以下命令时问题就来了:

git clone git://git.saurik.com/ldid.git
fatal: destination path 'ldid' already exists and is not an empty directory.
cd ldid
git submodule update --init
./make.sh
Password:
xcode-select: error: invalid developer directory '/Applications/Xcode-5.1.1.app

我输入了密码,但它确实显示了错误。我已经尝试过以下命令:

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcode-select -s </Applications/Xcode.app/Contents/Developer>

第二个实际上导致我出现“换行符”或类似错误。 我的xcode版本不是5.1.1,我什至不知道为什么我的终端说Xcode.app是Xcode-5.1.1!

 xcode-select -v
 xcode-select version 2343.

我已经试过放命令了:

xcode-select -p

输出是:

/Applications/Xcode.app/Contents/Developer

那么,如果这是输出,为什么它说我的开发者目录是“/Applications/Xcode-5.1.1.app”?

请帮帮我!

【问题讨论】:

    标签: xcode terminal directory theos


    【解决方案1】:

    ldid 文件夹中打开make.sh 文件。在第 16 行编辑路径:

    /Applications/Xcode.app/Contents/Developer
    

    然后再次运行./make.sh

    【讨论】:

      【解决方案2】:

      在 Applications 文件夹中将 Xcode 应用的名称更改为 Xcode-5.1.1。这对我有用。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2010-12-22
        • 2019-05-02
        • 2011-10-16
        • 1970-01-01
        • 2013-11-20
        • 1970-01-01
        • 2011-12-16
        • 1970-01-01
        相关资源
        最近更新 更多