Jay Ashworth created CB-1824: -------------------------------- Summary: SIGABRT when view loads - reason: '-[__NSCFBoolean isEqualToString:]: unrecognized selector Key: CB-1824 URL: https://issues.apache.org/jira/browse/CB-1824 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 2.2.0 Environment: Running on an iOS 5.1 device Reporter: Jay Ashworth Assignee: Shazron Abdullah
Error: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFBoolean isEqualToString:]: unrecognized selector sent to instance 0x3f6bea10' ----- This error is occurring in CDVViewController.m in viewDidLoad. I didn't look at the source changes for this release, but the error wasn't occurring for me in Cordova 2.1.0, so I believe it's new with 2.2.0. Changing backupWebStorage to backupWebStorageType in the 'if' statement resolves the error. (Line 219) if (IsAtLeastiOSVersion(@"5.1") && (([backupWebStorageType isEqualToString:@"local"]) || ([backupWebStorageType isEqualToString:@"cloud"] && !IsAtLeastiOSVersion(@"6.0")))) { [self registerPlugin:[[CDVLocalStorage alloc] initWithWebView:self.webView settings:[NSDictionary dictionaryWithObjectsAndKeys: @"backupType", backupWebStorageType, nil]] withClassName:NSStringFromClass([CDVLocalStorage class])]; } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira