Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Specify that the mach service you're connecting to is privileged #1

Merged
merged 1 commit into from May 9, 2012

Conversation

Projects
None yet
2 participants
Contributor

mdales commented May 9, 2012

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

Specify that the mach service you're connecting to is privileged.
If you don't specify this, the app works in Xcode for some reason, but won't work if launched outside of Xcode.
Owner

atnan commented May 9, 2012

Good catch, thanks!

atnan added a commit that referenced this pull request May 9, 2012

Merge pull request #1 from mdales/master
Specify that the mach service you're connecting to is privileged.

@atnan atnan merged commit 6b5273a into atnan:master May 9, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment