I have been developped this app for almost three years. It worked perfectly fine till I changed my phone to iPhone 16 and upgraded my xcode to the latest version (Version 16.0 (16A242d)). After the app finish building, the app will crash automatically when open. I had this onboarding page to be presented at the very beginning, simple image with an action button. The app kept breaking, and I found the Thread indicating error with ActionLabelView (Thread 1: EXC_BAD_ACCESS (code=2, address=0x16d107fa0)). I commented out the button on my app's onboarding page once, the app could run but to the next step will need the button. The code should be fine I believe, cuz nothing like this ever came up with my old phone and old xcode version. Could some one please help?
Crashes with error EXC_BAD_ACCESS (code=2, ...) after Xcode and Device Upgrade
I don’t see anything particularly mysterious here. It seems that you’ve hit a memory access exception, and such problems are quite common. There’s lots of general advice on this topic in Diagnosing issues using crash reports and device logs.
If you post a full Apple crash report, I may be able to offer some specific advice. See Posting a Crash Report for advice on how to do that.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"