###前提・実現したいこと
swiftで実機で開発を行っているのですが、以下のエラーが出る原因がわかりません。
###発生している問題・エラーメッセージ
2016-07-25 15:47:31.059 *******[***:****] _BSMachError: (os/kern) invalid capability (20) 2016-07-25 15:47:31.061 *******[***:****] _BSMachError: (os/kern) invalid name (15)
やっていることは遷移後の画面でセルをタップしたら以下のことをしています。
###該当のソースコード
swift
1let alert = UIAlertController(title: "グループ削除", message: "削除後復元不可", preferredStyle: .Alert) 2let okAction = UIAlertAction(title: "削除", style: UIAlertActionStyle.Default, handler: { [unowned self] (action: UIAlertAction) in 3 let store = CNContactStore() 4 let saveRequest = CNSaveRequest() 5 let groupDel = self.group?.mutableCopy() as! CNMutableGroup 6 saveRequest.deleteGroup(groupDel) 7 do { 8 try store.executeSaveRequest(saveRequest) 9 } catch let error as NSError { 10 print("Delete error \(error.localizedDescription)") 11 } 12 13 tableView.deselectRowAtIndexPath(indexPath, animated: false) 14 self.navigationController?.popToRootViewControllerAnimated(true) 15}) 16alert.addAction(okAction) 17 18let cancelAction = UIAlertAction(title: "しない", style: UIAlertActionStyle.Default, handler: { [] (action: UIAlertAction) in 19 tableView.deselectRowAtIndexPath(indexPath, animated: false) 20}) 21alert.addAction(cancelAction) 22 23self.presentViewController(alert, animated: true, completion: nil)
###試したこと
実際は以下の1行をコメントにすることでエラーは出ません。
self.navigationController?.popToRootViewControllerAnimated(true)
手動で戻るのは問題ないということです。
###補足情報(言語/FW/ツール等のバージョンなど)
swift2.2 xcode7.3.1
よろしくお願い致します。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。