Nat! bio photo


Senior Mull

Twitter Github Twitch

Xcode 3.1.2 crash is annoying

Here's a workaround for an annoying Xcode crash. Now Xcode is one of the few text editors, which doesn't have an autosave feature. Probably because it never crashes. That's because Xcode programmers are so good, they don't write bugs or whatever and never lose their code. Or they don't use Xcode to write Xcode ? Anyway...

  1. Create a new Xcode project.
  2. Add a new Objective-C class. Assume you want to create a category, so name it xxx+yyy
  3. Xcode will produce a template like this:
    //  xxx+yyy.h
    //  Untitled
    //  Created by Nat! on 12.08.09.
    //  Copyright 2009 __MyCompanyName__. All rights reserved.
    #import <Cocoa/Cocoa.h>
    @interface xxx_yyy : NSObject {
  4. Try to rename xxx_yyy to xxx (yyy) placing a ( open paranthesis after xxx
  5. If its just a conspiracy against me, nothing happens
    If I you are lucky, you get an exception
    If you are as unlucky as me, you crash

Workaround: Place the ) closing paranthesis after yyy first.