Xcode 4.2 Doesn’t Show Exception Stack Trace in Console

When using Xcode 4.2 for iOS development there’s an annoying bug where any exceptions crash to the main.m file instead of highlighting the line. Luckily you can set a custom breakpoint to restore the old and correct behaviour:

  1. Open the Breakpoint navigator (CMD + 6)
  2. Click the + button in the bottom left
  3. Select Add Exception Breakpoint 
  4. Click Done

Xcode 4.2 Window

Voila!

Xcode Install Requires iTunes to be Closed

When installing or updating Xcode you need to close iTunes for it to complete. If you’ve closed iTunes but still get this message:

In order to continue the install please quit iTunes

Open Activity Monitor and quit iTunes Helper. The installation will now finish.

This mainly seems to happen on beta versions of iTunes. The helper app runs to detect iOS devices being connected so it can auto-open iTunes.

Xcode 4: Unable to Select Project / Template Type

iOS File Template Selector

iOS File Template Selector - unable to click an item


When opening a new iOS or template type in Xcode 4 (4.0.2) I was unable to select any of the project or file templates, turn it out this occurred when tapping (not ‘clicking’) on the items.

Using a firm clicking click or the arrow keys seems to work around this. Tapping just seems to deselect anything currently selected.

What a strange bug!

iTunes could not back up the iPhone because the iPhone refused the request – iOS 4

Problem

When running iPhone OS 4 beta 1, syncing with iTunes doesn’t backup the iPhone causing the error:

iTunes could not back up the iPhone because the iPhone refused the request

Fix

Install the iPhone SDK 4 beta with Xcode 3.2.3 (or later), which will update some files in iTunes and enable the backup to complete successfully.

An iTunes update is likely to be released soon to address this and other issues some users are experiencing with syncing.

Update 25/04/10: Apparently iPhone OS 4 beta 2 backs up in iTunes 9.1 without any issues.