具體問題報錯如下:
error: attach by pid 'XXX' failed -- attach failed (Not allowed to attach to process. Look in the console messages (Console.app), near the debugserver entries, when the attach failed. The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)
解決方案

image.png
你可能將AdHoc 、AppStore的證書作為開發(fā)環(huán)境了,改成Dev證書就OK了。