Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Xcode clang version record
# Xcode 4.3.3
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.3.2
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.4
Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.4.1
Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.5
Apple clang version 4.1 (tags/Apple/clang-421.11.65) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
# Xcode 4.5.1
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
# Xcode 4.5.2 (4G2008a)
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
# Xcode 4.6
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
# Xcode 4.6.1
Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
# Xcode 4.6.2
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
# Xcode 4.6.3
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
# Xcode 5.0
Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
# Xcode 5.0.1 (5A2053), 5.0.2 (5A3005)
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
# Xcode 5.1 (5B130a)
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
# Xcode 5.1.1 (5B1008)
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
# Xcode 6.0 b7 (6A280n), GM (6A313)
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix
# Xcode 6.0.1 (6A317)
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
# Xcode 6.1 (6A1052c, 6A1052d)
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
# Xcode 6.1.1 (6A2008a)
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
# Xcode 6.2 (6C131e)
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
# Xcode 6.3 (6D570)
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix
# Xcode 6.3.1 (6D1002)
Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
# Xcode 6.3.2 (6D2105)
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
# Xcode 6.4 (6E35b)
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
(That's there is no change?)
# Xcode 7.0 beta (7A120f)
Apple LLVM version 7.0.0 (clang-700.0.53)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
(thanks @karies)
# Xcode 7.0 GM (7A218)
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
# Xcode 7.0 (7A220)
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
(thanks @LogicalKnight)
# Xcode 7.1 (7B91b)
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
# Xcode 7.1.1 (7B1005)
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
# Xcode 7.2 (7C68)
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix
(thanks @bobsummerwill)
# Xcode 7.2.1 (7C1002)
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.3.0
Thread model: posix
# Xcode 7.3 (7D175)
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 7.3.1 (7D1014)
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.0 (8A218a)
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.1 GM (8T61a) and 8.1 (8B62)
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.2 (8C38)
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.3 (8E162)
Apple LLVM version 8.1.0 (clang-802.0.38)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.3.1 (8E1000a)
Apple LLVM version 8.1.0 (clang-802.0.41)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.3.2 (8E2002)
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 8.3.3 (8E3004b)
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 9.0 (9A235)
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 9.0.1 (9A1004)
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 9.1 (9B55)
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 9.2 (9C40b)
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 9.3 (9E145) and 9.3.1 (9E501)
Apple LLVM version 9.1.0 (clang-902.0.39.1)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 9.4 (9F1027a) and 9.4.1 (9F2000)
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 10 beta (10L176w)
Apple LLVM version 10.0.0 (clang-1000.10.25.5)
Target: x86_64-apple-darwin17.6.0
Thread model: posix
InstalledDir: /path/to/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 10.0 (10A255)
Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 10.1 (10B61)
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 10.2 (10E125)
Apple LLVM version 10.0.1 (clang-1001.0.46.3)
Target: x86_64-apple-darwin18.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 10.2.1 (10E1001)
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.0 beta (11M336w)
Apple clang version 11.0.0 (clang-1100.0.20.17)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: $HOME/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 10.3 (10G8)
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.0 (11A420a)
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.1 (11A1027)
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.2 (11B52)
Apple clang version 11.0.0 (clang-1100.0.33.12)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.2.1 (11B500)
Apple clang version 11.0.0 (clang-1100.0.33.12)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.3 (11C29)
Apple clang version 11.0.0 (clang-1100.0.33.16)
Target: x86_64-apple-darwin19.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.3.1 (11C504)
Apple clang version 11.0.0 (clang-1100.0.33.17)
Target: x86_64-apple-darwin19.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.4 (11E146)
Apple clang version 11.0.3 (clang-1103.0.32.29)
Target: x86_64-apple-darwin19.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.4.1 (11E503a)
Apple clang version 11.0.3 (clang-1103.0.32.59)
Target: x86_64-apple-darwin19.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 11.5 (11E608c)
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 12.0 (12A7209)
Apple clang version 12.0.0 (clang-1200.0.32.2)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 12.1 (12A7403)
Apple clang version 12.0.0 (clang-1200.0.32.21)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 12.2 (12B45b)
Apple clang version 12.0.0 (clang-1200.0.32.27)
Target: x86_64-apple-darwin20.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 12.3 (12C33)
Apple clang version 12.0.0 (clang-1200.0.32.28)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 12.4 (12D4e)
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin20.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 12.5 (12E262)
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 12.5.1 (12E507)
Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: x86_64-apple-darwin20.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 13.0 (13A233)
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 13.1 (13A1030d)
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: x86_64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 13.2 (13C90)
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 13.2.1 (13C100)
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 13.3 (13E113)
Apple clang version 13.1.6 (clang-1316.0.21.2)
Target: x86_64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 13.3.1 (13E500a)
Apple clang version 13.1.6 (clang-1316.0.21.2.3)
Target: x86_64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 13.4 (13F17a)
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: x86_64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 13.4.1 (13F100)
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: x86_64-apple-darwin21.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 14.0 (14A309)
Apple clang version 14.0.0 (clang-1400.0.29.102)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 14.0.1 (14A400)
Apple clang version 14.0.0 (clang-1400.0.29.102)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Xcode 14.1.0 (14B47b)
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin22.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
@xelzmm
Copy link

xelzmm commented Aug 11, 2018

Xcode 10.0 beta 4 (10L213o)

Apple LLVM version 10.0.0 (clang-1000.10.40.1)

Xcode 10.0 beta 6 (10L232m)

Apple LLVM version 10.0.0 (clang-1000.10.43.1)

clang version advanced again.

@xelzmm
Copy link

xelzmm commented Aug 11, 2018

I believe xcode clang-9.1.0 is based on llvm 6.0.0 and xcode clang-10.0.0 is based on llvm 7.0, but not associated with any commits in the community version of llvm. the bitcode formats are diverged.

You can build your own llvm/cfe and use them in xcode under any workable version(e.g. no unresolvable syntax or unresolvable command line parameters) without bitcode enabled, since the bitcode would reject by AppStore.

@boris-kolpackov

@donbright
Copy link

donbright commented Aug 20, 2018

@boris-kolpackov i may be wrong but I tried to find this by comparing header files... . step 0, install Xcode command line tools, step 1, download several versions of clang source code (cfe*) from http://releases.llvm.org/download.html and unpack with tar xf , step2, open terminal, cd to Downloads, then run recursive diff showing which files changed:

donbright@Macs-MacBook:~/Downloads$ diff -qr cfe-4.0.1.src/lib/Headers /Library/Developer/CommandLineTools/usr/lib/clang/9.1.0/include

donbright@Macs-MacBook:~/Downloads$ diff -qr cfe-5.0.2.src/lib/Headers /Library/Developer/CommandLineTools/usr/lib/clang/9.1.0/include

donbright@Macs-MacBook:~/Downloads$ diff -qr cfe-6.0.1.src/lib/Headers /Library/Developer/CommandLineTools/usr/lib/clang/9.1.0/include

If this method is correct (big if), it seems that 9.1.0 is very close to 5.0.2, much closer than 4 or 6, which have dozens of files differing, while 5.0.2 only differs by cuda, arm_neon.h, CMakeLists, and sanitizer.

@boris-kolpackov
Copy link

boris-kolpackov commented Sep 10, 2018

@donbright Yes, that's the idea we had as well. One particularly informative header is libc++'s __config which defines the _LIBCPP_VERSION macro. For 9.1.0 it is 5000 which suggests it is from somewhere in the 5-series line. While for 10.0.0 (from Beta 6) it is 6000.

@rsfinn
Copy link

rsfinn commented Sep 12, 2018

Xcode 10 GM (10A254a)

Apple LLVM version 10.0.0 (clang-1000.11.45.2)
Target: x86_64-apple-darwin17.7.0
Thread model: posix

Note that the target has changed as well. _LIBCPP_VERSION remains 6000.

@oktal3700
Copy link

oktal3700 commented Oct 21, 2018

Another approach is to observe that Xcode 9 ships with swift 4.1, and at https://github.com/apple/swift-llvm/blob/swift-4.1-branch/CMakeLists.txt we can see:

if(NOT DEFINED LLVM_VERSION_MAJOR)
  set(LLVM_VERSION_MAJOR 5)
endif()
if(NOT DEFINED LLVM_VERSION_MINOR)
  set(LLVM_VERSION_MINOR 0)
endif()
if(NOT DEFINED LLVM_VERSION_PATCH)
  set(LLVM_VERSION_PATCH 2)
endif()

Using this technique provides the following tentative version mapping:

Xcode 8.3  --> swift 3.1 --> llvm 4.0.0
Xcode 9.0  --> swift 4.0 --> llvm 4.0.0
Xcode 9.3  --> swift 4.1 --> llvm 5.0.2
Xcode 10.0 --> swift 4.2 --> llvm 6.0.1

@xelzmm
Copy link

xelzmm commented Oct 31, 2018

Xcode 10.1 (10B61)

Apple LLVM version 10.0.0 (clang-1000.11.45.5)

@xelzmm
Copy link

xelzmm commented Nov 8, 2018

Apple release source code of various versions of xcode recently. but clang was omitted since xcode 8.3

see https://opensource.apple.com/

@maromato
Copy link

maromato commented Jan 5, 2019

Hi There is something strange happens in my Xcode on MacBook pro.
I tried to update Command Line Tool to the latest version.
All of the sudden, the clang version became strange.

$ clang --version
clang version 7.0.1 (tags/RELEASE_701/final)
Target: x86_64-apple-darwin18.2.0
Thread model: posix

$ llvm-g++ --version
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin18.2.0
Thread model: posix

I tried to update command line tool or Xcode several times but it did not work?
Does anybody have any idea to fix this?

Thx

@benfed
Copy link

benfed commented Mar 25, 2019

Version 10.2 beta 4 (10P107d)

Apple LLVM version 10.0.1 (clang-1001.0.46.2)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@YsHaNgM
Copy link

YsHaNgM commented Mar 29, 2019

If you installed clion, in its preference-toolchains, you might see 'debugger' as 'bundled LLDB 7.0.1'. I believe this is the current Apple clang version. (eg.Apple LLVM version 10.0.1)

@jblazquez
Copy link

jblazquez commented Jun 3, 2019

Version 11.0 beta 1 (11M336w)

Apple clang version 11.0.0 (clang-1100.0.20.17)
Target: x86_64-apple-darwin18.6.0
Thread model: posix

@rsfinn
Copy link

rsfinn commented Oct 3, 2019

Xcode 11.2 beta 1 (11B41)

Apple clang version 11.0.0 (clang-1100.0.33.9)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@bc-lee
Copy link

bc-lee commented Jun 29, 2020

Xcode 12 beta (12A6159)

Apple clang version 12.0.0 (clang-1200.0.22.19)
Target: x86_64-apple-darwin19.5.0
Thread model: posix

@brucekaskel
Copy link

brucekaskel commented Sep 19, 2020

Version 11.5 (11E608c)

Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.5.0
Thread model: posix

Version 11.6 (11E708)

Apple clang version 11.0.3 (clang-1103.0.32.62) [no change]
Target: x86_64-apple-darwin19.5.0
Thread model: posix

Version 11.7 (11E801a)

Apple clang version 11.0.3 (clang-1103.0.32.62) [no change]
Target: x86_64-apple-darwin19.5.0
Thread model: posix

Version 12.0 beta 6 (12A8189n)

Apple clang version 12.0.0 (clang-1200.0.31.1)
Target: x86_64-apple-darwin19.5.0
Thread model: posix

@Eric-Guo
Copy link

Eric-Guo commented Sep 20, 2020

Version 12.4 (12D4e)

Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@carenas
Copy link

carenas commented Aug 12, 2021

Version 13.0 beta 5 (13A5212g)

Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: arm64-apple-darwin21.0.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@whitegfx
Copy link

whitegfx commented Sep 6, 2021

thank you!

@bc-lee
Copy link

bc-lee commented Feb 2, 2022

Xcode 13.3 Beta 1 (13E5086k)

$ xcrun clang --version
Apple clang version 13.1.6 (clang-1316.0.19.2)
Target: x86_64-apple-darwin21.2.0
Thread model: posix
InstalledDir: /Applications/Xcode13.3-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

$ xcrun swift --version
swift-driver version: 1.44.2 Apple Swift version 5.6 (swiftlang-5.6.0.320.8 clang-1316.0.18.8)
Target: x86_64-apple-macosx12.0

@XcqRomance
Copy link

XcqRomance commented Feb 2, 2022

@janosvitok
Copy link

janosvitok commented Feb 13, 2022

Xcode 13.3 Beta 2 (13E5095k)

$ xcrun clang --version
Apple clang version 13.1.6 (clang-1316.0.20.6)
Target: x86_64-apple-darwin21.3.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

$ xcrun swift --version
swift-driver version: 1.45.2 Apple Swift version 5.6 (swiftlang-5.6.0.322.3 clang-1316.0.18.9)
Target: x86_64-apple-macosx12.0

@oscarbg
Copy link

oscarbg commented Jun 14, 2022

Xcode 14.0 beta versions?

@XcqRomance
Copy link

XcqRomance commented Jun 14, 2022

@janosvitok
Copy link

janosvitok commented Jun 15, 2022

Xcode 14.0 Beta 1 (14A5228q)

$ ./clang --version
Apple clang version 14.0.0 (clang-1400.0.17.3.1)
Target: x86_64-apple-darwin21.5.0
Thread model: posix
InstalledDir: /Applications/Xcode-14-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/.

$ ./swift --version
swift-driver version: 1.55.1 Apple Swift version 5.7 (swiftlang-5.7.0.113.202 clang-1400.0.16.2)
Target: x86_64-apple-macosx12.0

@janosvitok
Copy link

janosvitok commented Jun 23, 2022

Xcode 14.0 Beta 2 (14A5229c)

$ ./clang --version
Apple clang version 14.0.0 (clang-1400.0.17.3.3)
Target: x86_64-apple-darwin21.5.0
Thread model: posix
InstalledDir: /Applications/Xcode-14-beta-2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/.

$ ./swift --version
swift-driver version: 1.55.1 Apple Swift version 5.7 (swiftlang-5.7.0.113.202 clang-1400.0.16.2)
Target: x86_64-apple-macosx12.0

@janosvitok
Copy link

janosvitok commented Jul 8, 2022

Xcode 14.0 Beta 3 (14A5270f)

$ ./clang --version
Apple clang version 14.0.0 (clang-1400.0.28.1)
Target: x86_64-apple-darwin21.5.0
Thread model: posix
InstalledDir: /Applications/Xcode-14.0-beta-3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/.

$ ./swift --version
swift-driver version: 1.60 Apple Swift version 5.7 (swiftlang-5.7.0.120.1 clang-1400.0.28.1)
Target: x86_64-apple-macosx12.0

@XcqRomance
Copy link

XcqRomance commented Jul 8, 2022

@yamaya
Copy link
Author

yamaya commented Sep 13, 2022

Thank you all very much.

Swift is Xcode swift version record

@yamaya
Copy link
Author

yamaya commented Sep 20, 2022

There seems to be no change in 14.0.1RC (14A400).

@XcqRomance
Copy link

XcqRomance commented Oct 11, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment