-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMAppService and MachServiceCriteria #128
Comments
Thanks for opening this issue, I'll take a look this weekend. |
@jakaplan I have a fork that "works". Please take a look :) |
I don't see anything immediately wrong with the code as it currently exists. Could you provide me with the error message that's associated with the
It validates that the daemon or agent is located within its parent's application bundle. This means a
When you "it returns a path" what is "it" referring to?
Possibly. Are you creating the |
I took a look, but don't understand them. Are you trying to run the |
I'm getting |
Is it literally logging A command line tool should work. Can you confirm you're using |
Also wanted to let you know I'm committed to working through this issue, but it might take a bit of time to communicate back and forth as we're far apart timezone wise: I'm in UTC+12 and it looks like you're in UTC+2. |
Hey! :) The error I'm having with the sameBundle criteria is thrown by the server and it's:
For the same
|
Why do I need XPC? I need to run privileged process to make some changes in Apple's SMC. That's all. So ideally I would need to: |
I now understand what's going wrong for you and why your PR did not make sense to me. Thank you for pointing me at your entire Xcode project, I would not have been able to figure this out otherwise! The root cause of the issue is that my code is expecting I will look for an alternate API that behaves consistently to fix this issue and then put up a PR. |
@jakaplan Everything is tip-top :) |
Fixes #128 - consistently determines location of CLI or app bundle
Hey!
First of all, AMAZING work!
I'm trying to use the framework to talk with a daemon launched by the new
SMAppService
api. The daemon launches, launches server but I can't make it to talk with the client. It fails on the first condition. But...I'm not sure that
validateThisProcessIsAnSMAppServiceDaemon
should work at all. It checks for theBundle
sbundleURL
and it assumes that it'll receive a path with theContents
folder. It doesn't work in my case, it returns a path, but to the bundle itself (so the last component is*.app
). Am I doing something wrong?SecureXPC/Sources/SecureXPC/Server/MachServiceCriteria.swift
Line 561 in c105054
The text was updated successfully, but these errors were encountered: