具体问题报错如下:
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的证书作为开发环境了,改成Dev证书就OK了。