錯誤標題: The request to open com.myDomain.MyApp failed 錯誤細節: The request was denied by service delegate (SBMainWorkspace) for reason: unspecified 解決方法:點擊模擬器前面的工程 -> Edit Scheme -> Info -> Executable -> 將MyApp.app換成Ask on launch
這個bug是在更新了Xcode后,運行項目時出現的。。。。。。。。
具體原因,不明,搜羅了一些方法
一 、運行程序的時候突然出現這個問題,程序啟動不起來,提示
The request was denied by service delegate (SBMainWorkspace) for reason: Security ("Entitlement "com.apple.frontboard.debugapplications" required to launch applications for debugging").
解決辦法:
1.打開Finder,然后同時按住command+shift+g,輸入:
/Users/xx/資源庫/Developer/CoreSimulator/Devices/? ? (xx是自己用戶名)
ps:也就是點擊前往--->前往文件夾,輸入/Users/xx/資源庫/Developer/CoreSimulator/Devices/
刪除所有內容
2.重新啟動Xcode和模擬器即可
二、啟動成程序時碰到這樣的問題:
The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.
解決辦法:
1.點擊工程 -> Product -> Scheme -> New Scheme -> Target選擇第一個Name重新添加一個工程到模擬器
2.點擊工程 -> Product -> Scheme ->Manage Schemes (如果你完成第一步就會有兩個工程,將以前的刪除掉)刪除方法是選中不要的工程,點擊左下方的“-”號
3.選中你新添加的工程運行即可