I just updated from Snow Leopard to Lion, and from Xcode 4.2 for Snow Leopard to Xcode 4.3 for Lion. Now when I try to build and run an app I’m working on I get a crash before the ever getting to my code. The error message is EXC_BAD_ACCESS. I don’t know how to print out my stack trace so I’m including an image of it.
I know that my code was working in Xcode 4.2, because I’ve checked out clean versions from the source code repository. Also, I’ve tried to run a few other apps from xcode and they seem to run fine. I have no idea what the problem could be.
I’m using iOS 5.0 as the base SDK.
I have tried cleaning and deleting the app from the simulator.
Update:
I still haven’t found a solution to this problem, but I did find that I am able to build and run on my iPhone, just not the simulator.
Also, I tried deleting and reinstalling Xcode, with no change.
Well I resolved the issue. I went into the Target Build Settings, in the Linker section, and cleared everything out of the Other Linker Flags. One of these must have been causing the problem.