_BSMachError: port 7113; (os/kern) invalid capability (0x14) " _BSMachError: port 7113; (os/kern) invalid name (0xf) "

设置应用于iOS 9 :使用UIAlertController 跳转到系统设置的时候出现如下bug或警告:

 _BSMachError: port 7113; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
 _BSMachError: port 7113; (os/kern) invalid name (0xf) "Unable to deallocate send right"

解决方法:
通过使用多线程延迟调用解决这个问题,代码如下:

 dispatch_after(0.2, dispatch_get_main_queue(), ^{

       [[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

 });

你可能感兴趣的:(_BSMachError: port 7113; (os/kern) invalid capability (0x14) " _BSMachError: port 7113; (os/kern) invalid name (0xf) ")