Xcode is an integrated development environment for macOS which supports the development of native apps for macOS, iOS, watchOS, and tvOS. Xcode is the successor to NeXT's Project Builder and PBX. (In fact, Xcode's project manifest files are still named with the
Xcode releases include stable versions of the clang C/C++/Obj-C compiler, the Swift compiler, the LLDB debugger, and iOS/watchOS/tvOS simulators. Xcode also includes Interface Builder, as well as tools for viewing and editing 3D models and scenes, image assets, and more.
Many developers like to customize the font, text, and background color of their IDE's. You can do this in Xcode by opening the app preference pane, either by going to XCODE->Preferences, or by pressing '⌘,'
With the preference pane open you can click on the 'Fonts and Colors' tab.
From here you can change the source AND console background and font colors. There are many pre-made color and font schemes provided with Xcode. You choose these from the list on the left (Basic, Chalkboard, etc). You can find and download more online (like here for example).
To further customize any theme, you can customize any of the types listed in the right pane (Plain Text, Comments, Documentation Markup, etc). For example, say I really want my 'Numbers' to show up in my code. So I change the font to 'American Typewriter' at 24 px, the color to a greenish color, and set the line highlighting to red:
Now in my text editing, I can really see my numbers:
Now you can customize the look and feel of the 'Source Editor' and 'Console' to your hearts delight!
Many developers like to theme their IDS dark (light text, dark background). In Xcode, you can only do this for the 'Source Editor' and the 'Console'. However, the Navigation (left side), Debug (bottom), and Utility (far right) sections are non-customizable. There are two work arounds to this. First (kind of tricky, is to leave the IDE light themed (Light background, dark text) then invert the screen colors all together. This will make everything dark, but colors in the simulator and in the rest of the system are now wonky. The second work around is to hide The Navigation, Debug, and Utility areas when not in use. You can toggle these areas quickly using the following commands:
Navigator : ⌘0
Debug Area : ⇧⌘Y
Utility : ⌥⌘0
Download Xcode from the Mac App Store.
Click to create a new project or playground:
You can have multiple versions of Xcode installed at the same time (including beta versions). Simply rename the application in Finder to avoid conflicts.
Note: Installing Xcode from the App Store will tend to overwrite an existing version on your machine. You can also install Xcode from a direct download to get more control over which versions you have.
Each copy of Xcode includes command line tools (
xcodebuild, etc.). You can choose which ones are invoked by the commands in
In Xcode's preferences, under the Locations tab, choose a version of Xcode:
Or you can manage versions from the command line using
# Print the currently selected version $ xcode-select --print-path /Applications/Xcode.app/Contents/Developer $ clang --version 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 # Find all installed versions using Spotlight $ mdfind 'kMDItemCFBundleIdentifier = "com.apple.dt.Xcode"' /Applications/Xcode.app /Applications/Xcode72.app # Check their version numbers $ mdfind 'kMDItemCFBundleIdentifier = "com.apple.dt.Xcode"' | xargs mdls -name kMDItemVersion kMDItemVersion = "7.3" kMDItemVersion = "7.2.1" # Switch to a different version $ sudo xcode-select --switch /Applications/Xcode72.app $ clang --version Apple LLVM version 7.0.2 (clang-700.1.81) Target: x86_64-apple-darwin15.4.0 Thread model: posix