Which version of Xcode does xcodebuild use?

后端 未结 3 1359
走了就别回头了
走了就别回头了 2021-01-30 10:26

I have installed both Xcode 3.2 and Xcode 4.0.2 on the same machine, which uses Hudson for automated CI (continuous integration) builds. When I say that both were installed, wha

相关标签:
3条回答
  • 2021-01-30 10:48

    You can find out what version is xcodebuild using with xcode-select -print-path. Also, change to a different version using xcode-select -switch <path>

    0 讨论(0)
  • 2021-01-30 10:55

    Outside the terminal, you can view and change this in Xcode.

    Open Preferences, then select the Locations tab. Near the bottom, an entry titled Command Line Tools labels a dropdown, whose selection corresponds to the version of Xcode used in xcodebuild.

    You may open this dropdown to select another version of Xcode that you have installed in your /Applications folder.

    0 讨论(0)
  • 2021-01-30 11:00

    Also, to determine which XCode environment is being used, use the command xcodebuild -version.

    0 讨论(0)
提交回复
热议问题