Skip to content

Crashed when AirDrop present UIActivityViewController on iOS13.0/Xcode 11 #28

@yuehengwu

Description

@yuehengwu

Scene:
UIActivityViewController *shareVC = [[UIActivityViewController alloc]initWithActivityItems:@[self.debugText.string] applicationActivities:nil];
[self presentViewController:shareVC animated:YES completion:nil];

Crash:
crash at NSCache(safe) hookSetObject:forKey: ,because input an nil key, but when I don't use NSObjectSafe , it doesn't crash .

Here is screenshot:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions