xcodebuild命令工具,而不安装Xcode本身 [英] xcodebuild command tool without installing Xcode itself
问题描述
我需要在自动化过程中在不进行任何开发的机器上构建Xcode项目。我还希望在该机器上节省磁盘空间。
I need to build a Xcode project in an automated process on a machine that will not be making any development. I also want to save disk space on that machine.
我认为 xcodebuild
命令行是完美的。但是要安装这个工具,你需要安装Xcode本身。有没有方法只安装 xcodebuild
和其他依赖项?
I thought the xcodebuild
command line would be perfect for that. But to install that tool, you need to install Xcode itself. Is there a way to install only xcodebuild
and other dependencies?
我试图安装这个包,它包括 xcodebuild
,但其他依赖似乎缺少。
I tried to install this package, it does include xcodebuild
, but other dependencies seems missing.
推荐答案
现在苹果只有一个CLI安装,这可能是最好的方法。
Now that Apple has a CLI only install, that's probably the best way to go.
以下的旧答案。
- 安装 安装GCC和LLVM
- 从现有的Xcode安装或安装程序复制这些文件:
-
/ Developer / usr /
中的所有内容/ Developer / Library /
- 您需要的平台(iOS或MacOSX)在
/ Developer / Platforms /
- 您在
/ Developer / SDKs /
- Install this to install GCC and LLVM
- Copy these files from an existing Xcode installation or from the installer :
- Everything in
/Developer/Library/
- Everything in
/Developer/usr/
- The platform you need (iOS or MacOSX) in
/Developer/Platforms/
- The SDK your building against in
/Developer/SDKs/
就是这样!享受您的极简Xcode安装。
That's it! Enjoy your minimalist Xcode install.
这篇关于xcodebuild命令工具,而不安装Xcode本身的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
- Everything in
-