Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XPC test bundle on Xcode 5

I have Cocoa application with custom XPC service. I would like to create tests for that XPC, so I created new test bundle for that and created some tests. But when I run those tests (whose doesn't show any error in Xcode), IDE is not able to link them to tested XPC bundle. Of course I set Target Dependency to my XPC bundle but it still doesn't work.

I think that problem will be at Test host settings but I'm not good at Xcode configuration. I also studied Apple's tutorial (Daemons and Services Programming Guide) but it doesn't mention testing XPC bundle. Neither their example SandboxedFetch.

like image 503
Marian Bouček Avatar asked Sep 25 '13 13:09

Marian Bouček


Video Answer


1 Answers

On Xcode 7, I managed to test my XPC by adding it in the Copy file build phase of my test target (specifying XPC Services for destination.

like image 150
Martin Delille Avatar answered Oct 31 '22 17:10

Martin Delille