1

Well, I'm having this interesting problem.

My iOS app is crashing in iOS Simulator & iPhone 4 but not in iPhone 5.

When it happens, I got this line highlighted:

0x1b37aa3: calll 0x1b37aa8 ; lookUpMethod + 14

And in Thread 1:

0 lookUpMethod

..............

(some number) UIApplicationMain

(some number) main

I've tried enable NSZombie and putting some logs in didReceiveMemoryWarning: and applicationDidReceiveMemoryWarning: but nothing is logged. I've also put some logs in the middle of my code, but everything get logged pretty well.

How can I know why is this happening?

6
  • 2
    Try and add an exception breakpoint Commented Jul 30, 2013 at 4:05
  • 2
    This is a shot in the dark, but maybe it crashes because you're using a call that is available in iOS5 but not iOS4. Very much a guess. Commented Jul 30, 2013 at 4:09
  • check your deployement target is it 6? Commented Jul 30, 2013 at 4:16
  • it may possible that you have declared variable and property in .h file and you have not synthesized that variable in .m file. check out all properties that you have declared in .h file. Commented Jul 30, 2013 at 4:44
  • Please list the os name on which you iphone4 is working.... Commented Jul 30, 2013 at 5:18

1 Answer 1

2

I've founded the problem. The problem stopped when I remove this line in LMFormerField.m:

self.delegate = self;
Sign up to request clarification or add additional context in comments.

1 Comment

I had a similar problem with a crash that gave no error message. I wasn't using an LMFormerField, but your answer about a delegate reference made me realize that I had some objects with delegate references to my view controller that I needed to set to nil before the view controller was dealloc'd. Once I did that, the crash stopped happening because those objects were no longer trying to access my dealloc'd view controller.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.