Getting OCMock to Work with XCTest

October 7th, 2013

Filed under: Xcode | 1 comment

XCTest does not currently have built-in support for mock objects so you’ll need an external framework like OCMock for mock object support. OCMock versions 2.2 and later work with XCTest. I had only one problem getting OCMock to work with XCTest. When I ran my tests, I would get a warning saying that the test […]


Xcode 5: Instruments Heapshot Analysis Change

October 4th, 2013

Filed under: Instruments, Xcode | 1 comment

Xcode 5 has a naming change for the Allocations instrument in Instruments. The Heapshot Analysis section has been renamed Generations.


Xcode 5: New iOS Projects Use Storyboards

October 2nd, 2013

Filed under: Xcode | Be the first to comment!

If you create a new iOS application project in Xcode 5, you will notice there is no checkbox to use storyboards. There is no checkbox because all iOS application project templates (except the Empty Application template) include storyboards. Those of you who prefer xib files to storyboards should use the Empty Application template and add […]


Xcode 5: Unit Testing Changes

September 30th, 2013

Filed under: Xcode | 6 comments

One of the biggest areas of change in Xcode 5 involves unit testing. This post details those changes. Test Navigator Xcode 5 adds a test navigator to the available navigators on the left side of the project window. You can see an example of the test navigator in the following screenshot: The test navigator has […]


Xcode 5: Project Editor Changes

September 27th, 2013

Filed under: Xcode | Be the first to comment!

I’ve indirectly mentioned changes to the project editor in two previous posts. To keep from repeating myself, I’ve decided to write about the changes to the project editor. No Buttons at the Bottom of the Project Editor Xcode 5 removed buttons at the bottom of the project editor for doing things like adding build phases […]


Xcode 5: New Xib File Format

September 26th, 2013

Filed under: Interface Builder, Xcode | Be the first to comment!

Xcode 5 introduces a new xib file format that works better with version control. New Xcode 5 projects use the new file format. If you have an existing project, selecting the xib file from the project navigator should prompt you with an alert asking if you want to upgrade the xib file to the new […]


Xcode 5: Reading Documentation

September 25th, 2013

Filed under: Xcode | Be the first to comment!

Update: October 22, 2013 Apple made some changes to the documentation viewer in Xcode 5.0.1. I have updated the post for Xcode 5.0.1. Documentation Window In Xcode 5 the documentation viewer has been moved from the Organizer to its own window. Choose Help > Documentation and API Reference to open the documentation window. The documentation […]


Xcode 5: Adding Conditional and User-Defined Build Settings

September 24th, 2013

Filed under: Xcode | Be the first to comment!

If you look at your project’s build settings in Xcode 5, you will see there is no button at the bottom of the project editor to add conditional and user-defined build settings. How do you add conditional and user-defined build settings in Xcode 5? Choose Editor > Add Build Setting. The Add Build Setting menu […]


Xcode 5: Version Control Changes

September 23rd, 2013

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

This post covers the changes in version control support in Xcode 5. If you need more detailed information on Xcode’s version control features, read the version control chapter of my Xcode book, which you can download at the book’s site. Version Control Features Removed from Organizer If you open the Organizer in Xcode 5, you’ll […]


Xcode 5: Breakpoints Button

September 20th, 2013

Filed under: Xcode | Be the first to comment!

Xcode 4 had a Breakpoints button in the toolbar to toggle running and debugging your project. But there is no Breakpoints button in Xcode 5’s project window toolbar. Where did the Breakpoints button go? It moved to the debug bar, as you can see in the following screenshot: The Breakpoints button is the blue button […]