I just got a message from a user saying the app now crashes when they generate a PDF. I tracked it down and the error is totally weird. No code has changed but after they update to IOS11 this error appears.
This is the result of a modal segue like this :
the next file is a normal view controller and crashes before it even loads with the error above. The init doesn't even match what I am actually using :
Any help would be much appreciated.
Code:
2017-10-26 02:04:12.170897+0100 Pocket CBT[63876:4962116] -[PDFViewController initWithCoder:]: unrecognized selector sent to instance 0x60400001aab0
2017-10-26 02:04:12.180239+0100 Pocket CBT[63876:4962116] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[PDFViewController initWithCoder:]: unrecognized selector sent to instance 0x60400001aab0'
*** First throw call stack:
(
0 CoreFoundation 0x000000010dd8e1cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010d2a2f41 objc_exception_throw + 48
2 CoreFoundation 0x000000010de0e914 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x000000010dd11178 ___forwarding___ + 1432
4 CoreFoundation 0x000000010dd10b58 _CF_forwarding_prep_0 + 120
5 UIKit 0x000000010af8c278 -[UIClassSwapper initWithCoder:] + 246
6 UIKit 0x000000010b1de351 UINibDecoderDecodeObjectForValue + 704
7 UIKit 0x000000010b1de086 -[UINibDecoder decodeObjectForKey:] + 89
8 UIKit 0x000000010af8bf44 -[UIRuntimeConnection initWithCoder:] + 178
9 UIKit 0x000000010b1de351 UINibDecoderDecodeObjectForValue + 704
10 UIKit 0x000000010b1de4ef UINibDecoderDecodeObjectForValue + 1118
11 UIKit 0x000000010b1de086 -[UINibDecoder decodeObjectForKey:] + 89
12 UIKit 0x000000010af8b141 -[UINib instantiateWithOwner:options:] + 1262
13 UIKit 0x000000010b418026 -[UIStoryboard instantiateViewControllerWithIdentifier:] + 181
14 UIKit 0x000000010b42781a -[UIStoryboardSegueTemplate instantiateOrFindDestinationViewControllerWithSender:] + 90
15 UIKit 0x000000010b427a5e -[UIStoryboardSegueTemplate _perform:] + 52
16 UIKit 0x000000010aca8418 -[UIViewController performSegueWithIdentifier:sender:] + 99
17 Pocket CBT 0x0000000109705a51 -[thoughtRecordInfo showDiagram:] + 97
18 UIKit 0x000000010ab01ec9 -[UIApplication sendAction:to:from:forEvent:] + 83
19 UIKit 0x000000010ac7f1f6 -[UIControl sendAction:to:forEvent:] + 67
20 UIKit 0x000000010ac7f513 -[UIControl _sendActionsForEvents:withEvent:] + 450
21 UIKit 0x000000010ac7e440 -[UIControl touchesEnded:withEvent:] + 618
22 UIKit 0x000000010ab77b1b -[UIWindow _sendTouchesForEvent:] + 2807
23 UIKit 0x000000010ab7923e -[UIWindow sendEvent:] + 4124
24 UIKit 0x000000010ab1cd96 -[UIApplication sendEvent:] + 352
25 UIKit 0x000000010b45efce __dispatchPreprocessedEventFromEventQueue + 2809
26 UIKit 0x000000010b461c23 __handleEventQueueInternal + 5957
27 CoreFoundation 0x000000010dd312b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
28 CoreFoundation 0x000000010ddd0d31 __CFRunLoopDoSource0 + 81
29 CoreFoundation 0x000000010dd15c19 __CFRunLoopDoSources0 + 185
30 CoreFoundation 0x000000010dd151ff __CFRunLoopRun + 1279
31 CoreFoundation 0x000000010dd14a89 CFRunLoopRunSpecific + 409
32 GraphicsServices 0x000000010ecd79c6 GSEventRunModal + 62
33 UIKit 0x000000010ab0023c UIApplicationMain + 159
34 Pocket CBT 0x00000001096ed22f main + 111
35 libdyld.dylib 0x000000010f6e3d81 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
This is the result of a modal segue like this :
Code:
[self performSegueWithIdentifier:@"infoToPDF" sender:self];
the next file is a normal view controller and crashes before it even loads with the error above. The init doesn't even match what I am actually using :
Code:
#import "PDFViewController.h"
#import "AppDelegate.h"
#import <Foundation/Foundation.h>
#import "GradientBackgroundLayer.h"
#import "SummaryVC.h"
@interface PDFViewController ()
@end
@implementation PDFViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self)
{
// Custom initialization
}
return self;
}
Any help would be much appreciated.
Last edited: