简体   繁体   English

Xcode 命令行工具(并排的两个版本)

[英]Xcode command line tools (two versions side by side)

Recently we've moved to Xcode 8 in order to compile the app with new Xcode version, but I still need to use Old Xcode (7.3.1) in order to use it's instruments with older ver of appium ...最近我们转移到 Xcode 8 以便用新的 Xcode 版本编译应用程序,但我仍然需要使用旧的 Xcode (7.3.1) 以便在旧版本的 appium 中使用它的工具......

I was wondering if there is a way to open each Xcode ver and to use it's relevant command line tools?我想知道是否有办法打开每个 Xcode 版本并使用它的相关命令行工具?
currently , the command line tools I set in specific version is being used among two Xcode versions ...目前,我在特定版本中设置的命令行工具正在两个 Xcode 版本中使用...

Thanks!谢谢!

I am using X-code 7.3.3.我正在使用 X 代码 7.3.3。 to run appium test and Xcode-8 to build app under test.运行 appium test 和 Xcode-8 来构建被测应用程序。 I have moved xocde8 into folder name "xcode8".我已将 xocde8 移动到文件夹名称“xcode8”中。 And to switch between different Xcode version you can use -并在不同的 Xcode 版本之间切换,您可以使用 -

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

sudo xcode-select -s /Applications/xcode8/Xcode-8.app/Contents/Developer/

If you have a particular version of Xcode (say Xcode 8) installed in your system, go to /Applications and rename it to something else like Xcode8 or Xcode7.3.1.如果您的系统中安装了特定版本的 Xcode(例如 Xcode 8),请转到 /Applications 并将其重命名为其他名称,例如 Xcode8 或 Xcode7.3.1。 Install the other version normally.正常安装其他版本。 Now you have both versions running in different names.现在您的两个版本都以不同的名称运行。 I hope this is what you were looking for..我希望这就是你要找的。。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM