最近发现在使用拨打电话时
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:1231230123"]];
发现点击取消会报下面这个警告
[Common] _BSMachError: port 6b17; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
解决方法
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:1231230123"]];
});