Apache Cordova
  1. Apache Cordova
  2. CB-1824

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: 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])]; }

        Activity

        Shazron Abdullah made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Show
        Shazron Abdullah added a comment - Fix commit http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/56697f7a
        Shazron Abdullah made changes -
        Field Original Value New Value
        Fix Version/s 2.3.0 [ 12323278 ]
        Jay Ashworth created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development