NSZombieEnabled does not work

前端 未结 8 1764
谎友^
谎友^ 2020-12-15 07:59

When I set NSZombieEnabled = Yes nothing is written to the console. How can I fix this? Or can you advise me any other tools for an EXC_BAD_ACCESS?

8条回答
  •  春和景丽
    2020-12-15 08:17

    I think Not every EXC_BAD_ACCESS is found by NSZombie Enabling..
    Because Some cases I am also not getting result while using zombie..
    I think only EXC_BAD_ACCESS related to the use of released object can view by enabling zombie.

    And one more issue I noted while using zombie is : Sometimes It also cause crashes on debug. One case I caught crashed, showing :
    *** -[MagazineWebview respondsToSelector:]: message sent to deallocated instance 0x58ce2a0
    It happens only on when enabling NSZombie.

    What I am doing is, On
    - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
    I release the current "MagazineWebview" object and load the given [request URL] in another "MagazineWebview" object. For Achiving my some functionalities...

    thanks

提交回复
热议问题