Alex Zhu
Alex Zhu

Reputation: 7

lldb error in console output and can't get correct result

My project code in here:

SMS_DEMO

It runs successfully in Xcode but display (lldb) in console output, and error message

"thread 1:EXC_BREAKPOINT(code=EXC_I386_BPT,subcode=0x0", 

Please kindly see below screen for details.

enter image description here

Could you please kindly help to see what I should do to solve this problem?

Thank you!

Upvotes: 0

Views: 256

Answers (1)

mustafa
mustafa

Reputation: 15464

I looked closely to image that you post. I suggest you to check the getCo.... method from ContactData class. Inside it look for places where you cast a value. One of them is the source of this error.

EDIT: More Info

enter image description here

Here is the portion of your image that you should look. It show stack trace of thread 1 which is main thread. The number 0 line is where the crash happens. Looking the method name you can easily guess this is casting from one type to other. For example let bar = baz as Bar. Because of this cast failed your program crashed. Now the line 1 is your code. If you click that line you can see the line where the casting happens in editor.

Upvotes: 1

Related Questions