Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1824

SIGABRT when view loads - reason: '-[__NSCFBoolean isEqualToString:]: unrecognized selector

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: cordova-ios
    • Labels:
      None
    • Environment:

      Running on an iOS 5.1 device

      Description

      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])]; }

        Attachments

          Activity

            People

            • Assignee:
              shazron Shazron Abdullah
              Reporter:
              rumour Jay Ashworth
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: