SWRevealViewController
SWRevealViewController copied to clipboard
Xcode breaks on performSegueWithIdentifier:sender:
SWRevealViewController works amazingly. I just have one minor irritation I would like to see fixed. Every time I run my app, if I have breakpoints enabled it always breaks twice on line 1713 in SWRevealViewController.m
[self performSegueWithIdentifier:SWSegueRightIdentifier sender:nil];
It's not a fatal error, and I'm not sure why Xcode is throwing an exception, but it is.
Thanks!
I think you have to clear the project (Menu: Product->Clean and Alt+Product->Clean Build Folder...)
Nope. Followed the exact instructions. Still breaks there.

Verify the segue identifier in the storyboard. It should be sw_front or sw_rear or sw_right
Clarification: You're saying all segues that are going from the "side menu" should have "sw_right" as the segue identifier?
I have "sw_rear" set for the side menu, and "sw_right" set for the initial view controller. The rest have their own unique identifiers.
You must have a sw_front segue for the front view controller. sw_rear is for the left side controller. sw_right for the right side controller.
I apologize, I misspoke. The segue to the initial controller is, in fact, sw_front, not sw_right.
And then? Always the issue? If so, could you upload a project?
Every time. I wouldn't feel comfortable posting the project publicly. I know that's not helpful, but I've been working on this for years and can't even fathom if someone were to publish an app using the code I've written.
Ok, but perhaps can you reproduce the same issue in a sample project?
Yep, was able to reproduce the issue with a new test project. Added a breakpoint to break on all exceptions, ran, and sure enough, it hit that same line of code. RevealViewControllerTest.zip
Any news on this? I believe the issue was still there after you added the segue.
No, I do not have this issue!
And you added a breakpoint for all obj-c and C++ exceptions?
No, why do you want to add a breakpoint?
Ok I see, I added a breakpoint. It is normal because there is no segue with identifier sw_right in the application. But the exception is not thrown. So, no crash...
There is no documented method in Apple Documentation to check if a segue exist, so the author used a workaround!