_BSMachError: (os/kern) invalid capability (20)_BSMachError: (os/kern) invalid name (15)
解決方案:
Dismissing view controller prematurely might cause this.
[self dismissViewControllerAnimated:YES completion:NULL]; //<do something..>
This throws _BSMachErrors
vs
//<do something..>[self dismissViewControllerAnimated:YES completion:NULL];
Now, the _BSMachError is gone.
http://stackoverflow.com/questions/32341851/bsmacherror-xcode-7-beta