gpt4 book ai didi

无需安装Xcode本身的xcodebuild命令工具

转载 作者:行者123 更新时间:2023-12-04 12:49:12 27 4
gpt4 key购买 nike

我需要在一台不会进行任何开发的机器上以自动化过程构建一个 Xcode 项目。我还想节省那台机器上的磁盘空间。

我以为xcodebuild命令行将是完美的。但是要安装该工具,您需要安装 Xcode 本身。有没有办法只安装xcodebuild和其他依赖项?

我尝试安装 this package ,它确实包括 xcodebuild ,但似乎缺少其他依赖项。

最佳答案

不要按照@gcamp 的建议安装 osx-gcc-installer。

我做到了,它损坏了我的系统文件,以至于我不得不重新安装 OSX。

这是完全卸载 osx-gcc-installer 并恢复系统文件的方法:
http://magnemg.tumblr.com/post/113251602430/how-to-completely-uninstall-osx-gcc-installer

您可能需要安装 Xcode(我安装了,当我不得不升级到 Qt 5 时,它对 Xcode 有很强的依赖性。没有办法绕过它。)。或者您可能很幸运,只需安装官方 Apple CLT 即可逃脱:

Apple now provides an official Command Line Tools for Xcode package that you can install without needing to install Xcode itself! You can download it from Apple's developer site (free registration required) and search for "Command Line Tools".



也可以看看:
https://stackoverflow.com/a/20671590/380607其中说:

It appears that OSX has changed xcodebuild to require XCode to be installed, where before it functioned properly with only the OSX Command Line Tools installed.

关于无需安装Xcode本身的xcodebuild命令工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8417137/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com