# Install Xcode after the Xcode Command Line Tools: Possible?

**URL:** <https://forums.swift.org/t/install-xcode-after-the-xcode-command-line-tools-possible/68936>\
**Category:** Using Swift\
**Tags:** swift, xcode, command-line-tool\
**Created:** [December 11, 2023, 7:41pm UTC](https://forums.swift.org/t/install-xcode-after-the-xcode-command-line-tools-possible/68936 "2023-12-11T19:41:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![t-rex](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@t-rex](https://forums.swift.org/u/t-rex)\
**Post date:** [December 11, 2023, 7:41pm UTC](https://forums.swift.org/t/install-xcode-after-the-xcode-command-line-tools-possible/68936/1 "2023-12-11T19:41:53Z")

</div>

Hello,  
I have already installed the `Xcode Command Line Tools` on my Mac, which already include `Swift`. My terminal tells me that I have `Swift` as well:

> % swift --version  
> Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)  
> Target: x86\_64-apple-darwin23.1.0

Now I once read somewhere that you should not install the `Xcode Command Line Tools` and `Xcode` in parallel or install them one after the other. However, I have no idea whether this is true?  
I wanted to start programming `Swift` and `Xcode` is supposed to be THE tool of choice for this.

How do I deal with my situation?  
The official website only recommends installing `Xcode`. But no mention of what to do if you already have the `Xcode command line tools`. However, I don't want to break anything.

Can you help me with this?

---

<div class="post-metadata">

**Author:** ![Jon\_Shier](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jon_shier/32/921_2.png) [@Jon\_Shier](https://forums.swift.org/u/Jon_Shier)\
**Post date:** [December 11, 2023, 7:49pm UTC](https://forums.swift.org/t/install-xcode-after-the-xcode-command-line-tools-possible/68936/2 "2023-12-11T19:49:43Z")

</div>

Not sure who told you that but they can be installed in any order. Really you may not even need the command line tools if you do everything in Xcode.

---

<div class="post-metadata">

**Author:** ![t-rex](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@t-rex](https://forums.swift.org/u/t-rex)\
**Post date:** [December 11, 2023, 8:04pm UTC](https://forums.swift.org/t/install-xcode-after-the-xcode-command-line-tools-possible/68936/3 "2023-12-11T20:04:23Z")

</div>

@Jon_Shier Thank you! Can I then uninstall the `command line tools` and then install `Xcode`?

If so, is it still correct that I uninstall the `command line tools` completely (!) by deleting the

`/Library/Developer/CommandLineTools`

folder?

---

<div class="post-metadata">

**Author:** ![tera](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tera/32/38201_2.png) [@tera](https://forums.swift.org/u/tera)\
**Post date:** [December 11, 2023, 10:37pm UTC](https://forums.swift.org/t/install-xcode-after-the-xcode-command-line-tools-possible/68936/4 "2023-12-11T22:37:33Z")

</div>

Looks safe to me. Followed by a restart just in case.

Interestingly I found two copies of MacOSX SDK, one in:

```swift
/Library/Developer/CommandLineTools/SDKs/

```

and another in

```swift
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/

```

It's just 281 MB folder so not a big deal.

---

<div class="post-metadata">

**Author:** ![eskimo](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/eskimo/32/13558_2.png) [@eskimo](https://forums.swift.org/u/eskimo)\
**Post date:** [December 12, 2023, 8:56am UTC](https://forums.swift.org/t/install-xcode-after-the-xcode-command-line-tools-possible/68936/5 "2023-12-12T08:56:42Z")

</div>

One further tidbit: If you have more than one set of command-line tools installed — from either the Command Line Tools package or some number of Xcode apps — use `xcode-select` to see and select which one get used by default.

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple
