Reputation: 7
My project code in here:
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.
Could you please kindly help to see what I should do to solve this problem?
Thank you!
Upvotes: 0
Views: 256
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.
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