atnan/SMJobBlessXPC — pull request #1 by mdales (2012-05-09 18:10:51+00:00)
Title: Specify that the mach service you're connecting to is privileged

Hi there,

Took me a good while to figure this one out :)

If you don't specify XPC_CONNECTION_MACH_SERVICE_PRIVILEGED when connecting to the mach service, the app works in Xcode for some reason, but won't work if launched outside of Xcode (or in things like Instruments).

I wish I knew why it works in Xcode, as it makes sense once you read the docs for that constant, but for now I'm happy that I've worked out why things didn't work when I deployed them!

-- Michael