I am getting the following error after migrating from one mac to another using time machine.
Could not attach to pid
Ensure "project title" is not already running, and "system username" has permission to debug it.
The error occurs only when running the unit tests for (any) Framework project. Running an application on simulator and device works fine.
Running unit tests for an application works, but running it for any framework can't be launched due to this error. I am getting this error even with Alamofire or PromiseKit unit tests.
I tested the solutions suggested on similar questions on Stackoverflow (I deleted derived data, cleaned everything, reinstalled Xcode, restarted the mac ..) nothing solved the issue till now.
I am using Xcode 9.3 and tested this with Xcode 9.4-beta also.
I am running on Mac OS High Sierra - 10.13.4 (17E199)
Any help / suggestion is welcome!
After opening a bug report to Apple, they suggested me to:
groups
command. it was the case. Use this command: dscacheutil -q group
sudo /usr/sbin/DevToolsSecurity -status
. The status was unknown for me.sudo /usr/sbin/DevToolsSecurity -enable
. This solved finally my issue!If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With