cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-1824) SIGABRT when view loads - reason: '-[__NSCFBoolean isEqualToString:]: unrecognized selector
Date Wed, 07 Nov 2012 22:12:12 GMT

     [ https://issues.apache.org/jira/browse/CB-1824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah resolved CB-1824.
----------------------------------

    Resolution: Fixed

Fix commit http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/56697f7a
                
> 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
>             Fix For: 2.3.0
>
>
> 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

Mime
View raw message