Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4794] Script Error -[__NSCFString containsString:]

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2017-02-16T14:09:56.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsfeedback
ReporterAbidhusain Chidi
AssigneeShak Hossain
Created2017-02-16T07:55:22.000+0000
Updated2017-02-16T14:14:43.000+0000

Description

App launch issues in iPhone with iOS Version 7.1.2

Script Error -[__NSCFString containsString:] unrecognized selector sent to instance 0x145cdab0

Comments

  1. Hans Knöchel 2017-02-16

    Hey [~Abidindia009], sorry, but this information doesn't help. You need to specify at least the following for every ticket: * Example code + steps to reproduce * Error log * Full environment (SDK, CLI)
  2. Hans Knöchel 2017-02-16

    Looking through the core, it could be [this line](https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/KrollBridge.m#L1177) which uses the iOS 8+ method containsString. Note that Titanium SDK 6.0.0 and later require iOS 8 and later, due to the required changes in Xcode 8. If required, you can replace the manually by using
     if ([path rangeOfString:@"/"].location == NSNotFound) 
    instead.

JSON Source