Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法在 Xcode 的 llvm 中找到 clang 的版本号。除了知道答案,我想知道如何找到它。我已经在网上和 Xcode 中找到了我能想到的所有地方。我可以找到较旧的答案,这些答案显示了这方面的过时信息,但没有任何内容具有当前答案或当前获取答案的方法。
如果我正确理解您的问题,那么您应该在终端中输入“clang --version”。在那里,您将获得三组版本号。第一个是 Apple 的 LLVM 版本,它与 XCode 版本相关联。其次是 clang 本身的内部构建版本,最后是构建所基于的 LLVM 版本。
例如,对我自己的机器执行此操作,我得到以下信息
Apple LLVM 版本 4.2 (clang-425.0.28) (基于 LLVM 3.2svn)