Xcode 7: Profiling Unit Tests in Instruments

January 26th, 2016

Filed under: Instruments, Xcode | 1 comment

I learned about this tip from an Apple engineer on Apple’s developer forums and felt like sharing it here. Xcode 7 lets you profile unit tests in Instruments, using the following steps: Open the test navigator. Right-click on a test or a group of tests in the test navigator. Choose Profile “testMethod”, where testMethod is […]

Xcode 7: You Can Install Your Apps on an iOS Device for Free

November 5th, 2015

Filed under: Xcode | Be the first to comment!

A common complaint from people interested in iOS development was having to pay the $99 annual fee to Apple just to put an app they created on their own iOS device. These people should install Xcode 7. Starting with Xcode 7, iOS developers can install their apps on their iOS devices without paying the $99 […]

Xcode 7: No More Snapshots

October 26th, 2015

Filed under: Version Control, Xcode | 2 comments

You can no longer take snapshots of your projects in Xcode 7. Use version control to track changes in your projects. The easiest way to start with version control is to create a new Xcode project. When you are asked where to save the project, there is a checkbox to create a local git repository. […]

Checking API Availability in Swift 2

October 12th, 2015

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

When developing Mac and iOS applications, the recommended approach to support older operating systems is to use the most recent SDK and set the deployment target to the earliest operating system your application supports. Until recently the problem with this approach is there was no way to tell at compile time if your code used […]

Xcode 7: Compare Instruments Call Trees

September 28th, 2015

Filed under: Instruments, Xcode | 2 comments

A new feature of Instruments in Xcode 7 is the ability to compare two call trees in the Time Profiler instrument. This article provides a brief introduction on using this feature. Comparing two call trees is also available in the Counters template (it was disabled for me in every other template), but I’m going to […]