如何从命令行检查Xcode的版本?
我希望能够从脚本检查版本号或通过SSH远程检查。
答案 0 :(得分:5)
$ system_profiler SPDeveloperToolsDataType
Developer:
Developer Tools:
Version: 6.1.1 (6A2008a)
Location: /Applications/Xcode.app
Applications:
Xcode: 6.1.1 (6611)
Instruments: 6.1 (56160)
SDKs:
OS X:
10.10: (14A382)
10.9: (13F26)
iOS:
8.1: (12B411)
iOS Simulator:
7.1: (11D167)
8.1: (12B411)