You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But unfortunately this doesn't seem to work, as the returned dictionary gets released before a later call to objc_retainAutoreleasedReturnValue() deep inside iOS, causing a crash. Enabling Zombie objects shows:
*** -[__NSDictionaryI retain]: message sent to deallocated instance 0x600002611440
The text was updated successfully, but these errors were encountered:
I wrote this code was for testing in my script. I just found the invocation won't be released if I used a property to hold it. So it is not a problem now. Thanks anyway.
I attempted to swizzle the class method
JSONObjectWithData:options:error:
like this:But unfortunately this doesn't seem to work, as the returned dictionary gets released before a later call to
objc_retainAutoreleasedReturnValue()
deep inside iOS, causing a crash. Enabling Zombie objects shows:The text was updated successfully, but these errors were encountered: