无头安装 Xcode 3 和 Xcode 4
我想使用无头安装模式在同一个操作系统实例上安装 Xcode 3 和 Xcode 4(我无法使用 VPN)。 Xcode3 应安装在 Developer3 所示的文件夹中,Xcode4 应安装在 Developer4 中。
我已经使用 -showChoicesXML (sudo installer -showChoicesXML -pkg "Xcode and iOS SDK.mpkg" -target mytarget) 执行了 Xcode 安装程序,试图查看是否可以自定义默认文件夹 - 我没有发现任何有用的东西。
将 Xcode 安装在 /Developer 文件夹中然后将该文件夹重命名为其他名称是否安全?这可能是一个解决方案,但我认为它不会正常工作。
谢谢。
I would like to install both Xcode 3 and Xcode 4 on the same OS instance using the headless install mode (I cannot VPN). Xcode3 should be installed in a folder denoted Developer3, Xcode4 in Developer4.
I've executed the Xcode installer with -showChoicesXML (sudo installer -showChoicesXML -pkg "Xcode and iOS SDK.mpkg" -target mytarget) trying to see if I can customize the default folder - I haven't found anything helpful.
Is it safe to install Xcode in the /Developer folder and after that to rename the folder to another name? It might be a solution, but I suppose it will not work properly.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
安装后可以安全地将
/Developer
文件夹重命名为其他名称,并在使用命令行时使用xcode-select
切换开发人员工具的活动版本。另外,您应该在 Xcode 3 之后安装 Xcode 4,因为系统上只能存在一个版本的 UNIX 工具(安装在
/usr
中)。It is safe to rename the
/Developer
folder to something else after installation and usexcode-select
to switch the active version of the developer tools when working on the command-line.Also, you should install Xcode 4 after Xcode 3, as only one version of the UNIX tools (installed in
/usr
) can exist on a system.我找到了一种方法......我必须直接对安装程序脚本进行更改。脚本如下。我将尝试按照其他用户的建议重命名该文件夹。
I found a way to do it...I had to do changes directly into the installer script. The script is below. I will try to rename the folder as the other user suggested btw.