0

the crash log seems crash in line 90 enter image description here

but in my codes , it seems like line 90 will never can make a crash happen (the sessionManager is the AFHTTPSessionManager), any clue to fix this kind of crash ? enter image description here

ximmyxiao
  • 2,622
  • 3
  • 20
  • 35
  • check your `delegate.appDataObject.oauth2AcessToken`, are you sure it's not a `nil`? – Mistrx丶 Mar 06 '17 at 02:57
  • @ezatu丶 i think the nsstring format will make sure it will be safe even if the delegate.appDataObject.oauth2AcessToken is nil – ximmyxiao Mar 06 '17 at 03:14
  • You should add "Exception Breakpoint" to detech where is the actually crash. – Emre Gürses Mar 06 '17 at 05:22
  • see property of your `appdataobject` and `oauth2acesstoken` where you define. – Mistrx丶 Mar 06 '17 at 05:34
  • @EmreGürses this crash is found only in online version occasionally , and i can't reproduce it in my debug version. – ximmyxiao Mar 06 '17 at 06:15
  • 1
    I'm not sure if this is a factor, but only initialization methods should start with `init` in Objective C. It's possible that the name is confusing the runtime. – Dave Weston Mar 07 '17 at 04:16
  • @DaveWeston thanks alot , this init method is not conform to the naming convention , and maybe this can make the release problem happen! – ximmyxiao Mar 07 '17 at 06:10

0 Answers0