title: Thread 1 Breakpoint 1.2 - Swift Xcode 6 beta 2
body: <p>I have code for a splash screen that then goes into the main login screen. But it is not switching, it is giving me a <code>Thread 1 Breakpoint 1.2</code> error.</p>
  
  <p>here is the code:</p>
  
  <pre><code>func switchScreen() {
      let mainStoryboard = UIStoryboard(name: "Storyboard", bundle: NSBundle.mainBundle())
      let vc : UIViewController = mainStoryboard.instantiateViewControllerWithIdentifier("vcMainLogin") as UIViewController // this is the line giving the error
      self.presentViewController(vc, animated: true, completion: nil) 
  }
  
  override func viewDidLoad() {
      super.viewDidLoad()
      NSTimer.scheduledTimerWithTimeInterval(1.0, target: self, selector: "switchScreen", userInfo: nil, repeats: false)
      // Do any additional setup after loading the view.
  }
  </code></pre>
  
  <p>I have set the Storyboard ID to the same as the class name, but still it gives me this, and in the output: <code>(lldb)</code> only.</p>
  
  <p><img src="https://i.stack.imgur.com/IkqlH.png" alt="image"></p>