February 21st, 2018
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 […]
February 12th, 2018
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 […]
February 5th, 2018
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 […]
January 31st, 2018
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.
December 4th, 2017
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 […]
October 5th, 2017
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 […]
October 2nd, 2017
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 […]
September 25th, 2017
Xcode 9’s Source Control preferences let you specify files to ignore so the version control system won’t track them.
September 21st, 2017
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 […]
September 19th, 2017
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.