jasenhuang/NSObjectSafe

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

Opened this issue · 1 comments

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

@XiaoWuTongZhi it's a assert error actually,you can just ignore it