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:
- Open the Breakpoint navigator (CMD + 6)
- Click the + button in the bottom left
- Select Add Exception Breakpoint
- Click Done
When installing or updating Xcode you need to close iTunes for it to complete. If you’ve closed iTunes but still get this message:
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.
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!
If you’re trying to find your iOS app screenshots you’ve snapped in Xcode during your app development they’re located here:
Enjoy all your lovely iPad and iPhone app sn-apps..
When running iPhone OS 4 beta 1, syncing with iTunes doesn’t backup the iPhone causing the error:
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.