Xcode 9: Adding Your Project to GitHub

February 21st, 2018

Filed under: Version Control, Xcode | Be the first to comment!

Before Xcode 9, setting up your project to work on GitHub involved a lot of work. You had to login to GitHub, create a repository, go back to your Mac, launch the Terminal application, navigate to your project directory, and run multiple git commands. Xcode 9 makes working with GitHub much easier. You can add […]


Creating a Git Repository for an Existing Xcode Project

February 12th, 2018

Filed under: Version Control, Xcode | Be the first to comment!

When you create a new Xcode project, Xcode gives you the option to create a git repository on your Mac. How do you create a git repository for a project after the project has been created? Choose Source Control > Create Git Repositories. A sheet opens. Click the Create button and Xcode will create a […]


Using agvtool to Update Version and Build Numbers

February 5th, 2018

Filed under: Xcode | Be the first to comment!

Apple bundles a command-line tool with Xcode, agvtool, to automatically update your project’s version and build numbers. This article shows you how to use agvtool in your Xcode projects. Enabling agvtool in Your Project Before you can use agvtool, you must tell Xcode to use it for your project. To enable agvtool, change the following […]


Report a Bug to Apple from Xcode

January 31st, 2018

Filed under: Xcode | Be the first to comment!

In Xcode choose Help > Report an Issue to send a bug report to Apple. I’m not sure when this menu item was added to Xcode. I know it’s available in Xcode 9.2.


Xcode and New iOS Versions

December 4th, 2017

Filed under: Xcode | Be the first to comment!

I have seen a lot of people on Apple’s developer forums having problems running their apps on iOS devices running the latest version of iOS. If you find yourself in this situation, remember the following: Xcode is unaware of future iOS versions. What this means is if you’re running Xcode 8, connect an iPhone running […]


Xcode 9: Undefined Behavior Sanitizer

October 5th, 2017

Filed under: Xcode | Be the first to comment!

Xcode 9 adds the Undefined Behavior Sanitizer. Undefined Behavior Sanitizer detects undefined behavior in your code, specializing in checking unsafe constructs in C, C++, and Objective-C code. Undefined Behavior Sanitizer is turned off initially. You must enable it in your scheme. Select the Run step in the scheme and click the Diagnostics button at the […]


Xcode 9: Main Thread Checker

October 2nd, 2017

Filed under: Xcode | Be the first to comment!

Xcode 9 adds Main Thread Checker, a tool that detects when you make AppKit, UIKit, and WebKit calls on a background thread. Main Thread Checker should be enabled automatically when debugging, but you can check your scheme by selecting the Run step and clicking the Diagnostics button at the top of the scheme editor. Make […]


Xcode 9: Ignore Files

September 25th, 2017

Filed under: Version Control, Xcode | Be the first to comment!

Xcode 9’s Source Control preferences let you specify files to ignore so the version control system won’t track them.


Xcode 9: New Build System

September 21st, 2017

Filed under: Xcode | Be the first to comment!

Xcode 9 provides a preview of a new build system that has been built from scratch in Swift. The new build system is supposed to be faster and more reliable. To use the new build system in one of your projects, you must enable the new build system for that project. Choose File > Project […]


Xcode 9: Cocoa Xib File Projects Return

September 19th, 2017

Filed under: Cocoa, Mac Development, Xcode | Be the first to comment!

Xcode 8.3 removed the Use Storyboards checkbox for new Cocoa application projects. The checkbox has returned in Xcode 9 so you can choose whether to use storyboards or xib files for your project’s user interface.