0

I am creating a simple iOS app, and everything has been going fine until one error and the simulator crashed. I removed the error, yet the program continues to crash, halting at these two breakpoints:

//in my view controller's 'initWithNibName'
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];

and

//in my AppDelegate's 'didFinishLaunchingWithOptions'
RSViewController *newView = [[RSViewController alloc]init];

I have tried everything, even deleted and recreating the xib files. The only thing that seems to work is literally rewriting it in a new project with the code. Is there a way around this? This is literally the 5th time i have had to do this and I'm getting very frustrated. :(

Thanks!

rmaddy
  • 314,917
  • 42
  • 532
  • 579
jcaso
  • 69
  • 1
  • 7
  • Have you tried doing a `clean` on the project? – Hot Licks Nov 11 '13 at 02:52
  • 1
    (And it would be useful to tell us what exception is being thrown.) – Hot Licks Nov 11 '13 at 02:53
  • Yes I've done a clean, removed autolayout, and closed and reopened xcode. Sadly nothing :( – jcaso Nov 11 '13 at 02:53
  • I tried adding a breakpoint I'm not sure how to find it, nothing is output to the debug window(I'm new to XCode, especially XCode5) – jcaso Nov 11 '13 at 03:01
  • Do you have a rebuild-all option that you can execute after clean? I wasn't sure if a clean by itself necessarily forced a complete rebuild. – Bruce Dean Nov 11 '13 at 03:10
  • I don't believe so. I did restart the simulator though which half-fixed it. There is still the first breakpoint though. – jcaso Nov 11 '13 at 03:35
  • 1
    As asked earlier, what is the exception? Update your question with the complete error message. And note, Xcode is not crashing, your app is. – rmaddy Nov 11 '13 at 03:39
  • 1
    Please do Command+Shift+K once to clean the targets. Additionally, remove the derived data folder and then Run the project on simulator and if it still crashes then please share the crash log details. – Abhinav Nov 11 '13 at 03:54
  • How do I get the exception? Now it's just failing entirely.. – jcaso Nov 11 '13 at 04:52
  • What does failing entirely mean? Xcode itself crashes before it even gives you a compile error? If it does compile and run try this to get a break on exception: http://blog.manbolo.com/2012/01/23/xcode-tips-1-break-on-exceptions – Rok Jarc Nov 11 '13 at 07:04
  • If all else fails, add the logic in [this answer](http://stackoverflow.com/a/12268397/581994) to your `main`, so that exceptions are reliably logged on the simulator. – Hot Licks Nov 11 '13 at 12:58

0 Answers0