title: XCode is bugging out when adding an initialisation function from an Objective-C based Cocoapod
body: <p>I'm running the following code in my ViewController based on a cocoapod that is written in Objective-C:</p>
  
  <pre><code>    myCountDownTimer.setupCountDownForTheFirstTime(
          { (timer:ZGCountDownTimer) -&gt; void in
          timer.totalCountDownTime = 10
          },
          restoreFromBackUp: { (timer:ZGCountDownTimer) -&gt; Void in
          println ("its not running anymore")
      });
  </code></pre>
  
  <p>I translated it (I think correctly) from Objective-C which looked like this:</p>
  
  <pre><code>[self.myCountDownTimer setupCountDownForTheFirstTime:^(ZGCountDownTimer *timer) {
      timer.totalCountDownTime = kDefaultCountDownTime;
  }                                  restoreFromBackUp:^(ZGCountDownTimer *timer) {
      //some code
  }];
  </code></pre>
  
  <p>It returns no code errors, but XCode starts bugging out (eg all my code changes to white) and I get a message at the top of the screen saying <em>"Xcode encountered a problem, source editor functionality is limited. Attempting to restore..."</em> </p>
  
  <p>Then when I try build, I get the compile error <em>Swift Compile Error "Command failed due to signal: Segmentation fault: 11"</em></p>
  
  <p>I comment that segment of code out and the issue ceases.</p>
  
  <p>Thanks in advance.</p>