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?
Set a breakpoint on C++ exceptions to find where it's being thrown.
This was happening to me and went away when I set -ObjC in "Other Linker Flags"
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.
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.
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.
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
beforeFirst throw call stack
will pinpoint exact issue why exception is being thrown. Fix that problem and you are good to go.