0

*The difference from the suggested question is that I'm not using containsString: directly, but need to find where it is used.

On iOs 7 I'm getting an error:

2015-09-08 20:23:06.577 MyProject[2161:607] *** Assertion failure in -[SWRevealView layoutSublayersOfLayer:], /SourceCache/UIKit_Sim/UIKit-2935.137/UIView.m:8794 2015-09-08 20:23:06.580 MyProject[2161:607] -[__NSCFString containsString:]: unrecognized selector sent to instance 0x7bf6c1b0 libc++abi.dylib: terminate_handler unexpectedly threw an exception

I know that containsString: appeared only in iOs 8, but I'm sure that I didn't use it. 'containsString' search in workplace shows nothing. Highlighted string is in 'main.m' file, so it tells me nothing.

Could you please tell me how can I find the place where containsString: is called?

Artem Bakanov
  • 250
  • 2
  • 12

2 Answers2

3

SWRevealViewController.m's layoutSubviews method should include [super layoutSubviews]

Artem Bakanov
  • 250
  • 2
  • 12
2

You could use a symbolic breakpoint for containsString as well as reading the trace in the console log. https://developer.apple.com/library/ios/recipes/xcode_help-breakpoint_navigator/articles/adding_a_symbolic_breakpoint.html

Chris Slowik
  • 2,859
  • 1
  • 14
  • 27