_BSMachError XCode 7 Beta

前端 未结 8 1666
后悔当初
后悔当初 2020-12-08 00:15

I am getting the following error when I am running my code in Xcode7 with Swift2, after presenting a view controller through a push segue:

_BSMachError: (os/         


        
8条回答
  •  死守一世寂寞
    2020-12-08 00:29

    I had the same two error messages. In my case, the errors were appearing when I called [[UIApplication sharedApplication] openURL:url] after the user selected a button in an open UIAlertController. I assumed the alert was trying to close at the same time I was trying to open the URL. So, I introduced a slight delay and the error message went away.

    dispatch_after(0.2, dispatch_get_main_queue(), ^{
        [[UIApplication sharedApplication] openURL:url];
    });
    

    Not sure if this helps with your particular problem, but I thought it might be helpful to share.

提交回复
热议问题