XPC Testing Kit for Xcode 5

I have a Cocoa application with an XPC custom service. I would like to create tests for this XPC, so I created a new test suite for it and created some tests. But when I run those tests (whose error does not appear in Xcode), the IDE cannot associate them with the XPC test package. Of course, I installed Target Dependency for my XPC package, but it still doesn't work.

I think that the problem will be in the settings of Test host , but I am not very good at Xcode configuration. I also studied the Apple Guide (Demon and Service Programming Guide), but do not mention testing the XPC package. Neither is their SandboxedFetch example.

+4
source share
1 answer

In Xcode 7, I was able to test my XPC by adding it to the copy phase of my test target file (specifying the XPC services to assign.

0
source

All Articles