(null) libc++abi.dylib: terminate called throwing

2019-01-13 11:05发布

I use Xcode 4.5PR and iOS 6beta 2.

I didn't change any codes, my application throw an exception mentioned in the Title.

I used Debug Window which function caused this exception, but it showing

0x38dda960:  push   {r4, r5, r6, r7, lr}

How can I find a problem? How can I fix it?

11条回答
Root(大扎)
2楼-- · 2019-01-13 11:40

Set a breakpoint on C++ exceptions to find where it's being thrown.

enter image description here

查看更多
劳资没心,怎么记你
3楼-- · 2019-01-13 11:44

This was happening to me and went away when I set -ObjC in "Other Linker Flags"

查看更多
神经病院院长
4楼-- · 2019-01-13 11:45

Sometimes this can happen if you're simply missing a library - I was making a quick sample app with an MKMapView and had this error come up before I added MapKit.framework to my project.

查看更多
聊天终结者
5楼-- · 2019-01-13 11:50

Some time problem occur when user import any framework so also import that framework in .pch file in resource folder of application.Hope this can help some of you.

查看更多
干净又极端
6楼-- · 2019-01-13 11:54

Make sure you are using the developer preview version (4.5) of xcode and didn't by habit open the release version (4.3.3) and definitely have the iOS beta to match if you haven't updated the project settings you cannot run the app on iOS 6 beta after you update the project settings to iOS 6 the app will no longer run on iOS 5.x.x devices anymore one on the other.

查看更多
一夜七次
7楼-- · 2019-01-13 11:54

This exception can occur for variety of reasons. Best way to find the exact root cause is to look at console. There you will find text like this:

*** lorem ipsum lorem ipsum lorem ipsum
*** First throw call stack: (0x1d16012 0x16c3e7e 0xa4ef96 0x607704 0x6079a2 0x606876 0x617cb5 0x618beb 0x60a698 0x2b81df9 0x2b81ad0 0x1c8bbf5 0x1c8b962 0x1cbcbb6 0x1cbbf44 0x1cbbe1b 0x60617a 0x607ffc 0x1d1d 0x1c45) libc++abi.dylib: terminate called throwing an exception

Here text lorem ipsum before First throw call stack will pinpoint exact issue why exception is being thrown. Fix that problem and you are good to go.

查看更多
登录 后发表回答