objective c - How can this simple code fail assertion? -


    po(self);     po(_locationmanager.delegate);     po([cllocationhandler singleton]);     _locationmanager = [[cllocationmanager alloc] init];     _locationmanager.delegate = self;     po(self);     po(_locationmanager.delegate);     nsassert(_locationmanager.delegate==self,@"they meant each other"); 

so code works in simulator , in iphone. there 1 magical iphone belonging biz partner can't debug program with.

if run installed program directly code yield this:

��

<warning>: *** -[nskeyedunarchiver initforreadingwithdata:]: data null <warning>: self: <cllocationhandler: 0x1f8df560> <warning>: _locationmanager.delegate: (null) <warning>: [cllocationhandler singleton]: <cllocationhandler: 0x1f8df560> <warning>: self: <cllocationhandler: 0x1f8df560> <warning>: _locationmanager.delegate: <rwxsxtb_delegateproxy: 0x1e594d00> <warning>: *** assertion failure in -[cllocationhandler additionalinitialization], /business/dropbox/badgers/badgernew/cllocationhandler.m:251 <error>: *** terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'they meant each other' 

what hell delegateproxy?

may device in debugging jb(jail break).

so, unable debug in device.


Comments