Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Message from debugger: unable to attach" when running Tests on OSX app

I am unable to run my tests on my OSX app - the project builds fine but when I run Product -> Test in Xcode 8.2. It says : Message from debugger: unable to attach

How do I get my tests working again?

Unable to Attach Xcode

like image 223
UKDataGeek Avatar asked Jan 12 '17 12:01

UKDataGeek


1 Answers

What solved the problem for me was to enable signing on the test target. You need to go to your project's settings, go to your target and in general, under Testing, you have the Signing section. Click on the big button "Enable signing" (or something like this). You may have to deal with provisioning profiles but it wasn't the case for me.

Screenshot from my project's test target.

like image 181
Pomme2Poule Avatar answered Sep 18 '22 18:09

Pomme2Poule