moon
moon

Reputation: 1502

App crashes on simulator but works fine in device after upgrading to lion

My app is working fine on simulator all the while until i upgraded to OS Lion & xcode Version 4.1.

Now I got the error below.

EXC_BAD_ACCESS warning: Unable to restore previously selected frame.

But It's working fine on iPhone. Appreciate for any suggestion ...

Upvotes: 0

Views: 775

Answers (3)

Sneakyness
Sneakyness

Reputation: 5403

Did you uninstall Xcode via the command line before you installed the new version? This is a crucial step that many seem to be missing.

Upvotes: 0

Manish Burman
Manish Burman

Reputation: 3079

If you're getting an EXC_BAD_ACCESS error that means you're doing something wrong and dealing with either released or uninitialized objects. These errors don't always show up, and when they do, they show up well after the actual infraction. My point is this, just because its working fine on the iPhone doesn't mean the error does not exist.

Try enabling NSZombieEnabled

  1. You can do by clicking on 'Product' in the Xcode top bar.
  2. Press the option key and click on run.
  3. Under environment variables click +
  4. Added NSZombieEnabled and set its value to YES

This should give you more details about the object you're trying to access and help you debug the issue.

Upvotes: 1

Nathanial Woolls
Nathanial Woolls

Reputation: 5291

Try going into the keyboard settings on the simulator and turn everything off.

Upvotes: 0

Related Questions