Thread 1: EXC_BAD_ACCESS (code=1, address=0xf00000

2019-04-05 01:46发布

I have problem with Thread 1: EXC_BAD_ACCESS (code=1, address=0xf00000c) and I don't know how to resolve it. It appeared when I change some object in core date and save it and I try to pop this controller to parent. This error is in main() with retVal. here is some code

        int retVal;
    @try {
        retVal =  UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
           */\ error is here**
    }
    @catch (NSException *exception) {
        NSLog(@"%@", [exception callStackSymbols]);
        @throw exception;
    }
    return retVal;

After re-runing app all my changes are in core data. What is more this problem is only on iOS 7. iOS 6.1 is ok.

Does someone have idea how to resolve it?

7条回答
甜甜的少女心
2楼-- · 2019-04-05 02:25

EXC_BAD_ACCESS means there is no instance of a class to execute it.

There are 2 or more possibilities:

  1. An object is not initialized
  2. An object is already released

Please debug application carefully and analyze each object carefully. That might solve your issue.

查看更多
登录 后发表回答