-
Notifications
You must be signed in to change notification settings - Fork 33
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
Helper doesn't work after being notarized #33
Comments
Another intel: I think it's because notarization requires hardened runtime. Does hardened runtime interfere with the helper? |
Hardened runtime shouldn't affect the helper tool per se, but you may have to add a specific entitlement. Sandboxing however will prevent it. Sandboxed apps (anything destined for the App Store) can't have privileged helpers except by special dispensation from Apple, which they're unlikely to grant. So distribution would have to be old school (meaning you have to arrange a hosting site, payment system, etc...). You mentioned running in simulator, and in the previous issue, you mentioned UIKit. Is this an iOS app? macOS is the only OS in the Apple ecosystem that will run unsandboxed apps. I'm surprised if it ran in simulator. |
@chipjarred No, I never sandboxed it. Only hardened runtime since notarization requires it. I should've mentioned it's AppKit, not UIKit. It's s Mac app of course and yes It runs in the simulator. This is what I'm noticed so far:
Any thoughts? PS: At this point, I'm thinking what's the point of a privileged helper if it doesn't go through notarization? If you have a dev account, I would encourage you to try to package and get your app notarized to try to recreate the issue if you want to. |
With that clarification, I'm thinking it's an entitlement issue. I'm not at a computer so can't explore the options myself right now, but as I recall you have to add and entitlement file, I think you add it to the helper tool, rather than the main app, but I'm going from memory right now so I'm not 100% sure. You'll have to google to find out exactly what to put in it. When you say it runs in simulator I think you just mean that it runs in Xcode, which isn't the same thing. Xcode launches simulator for non-macOS apps to simulate the non-Mac device. For macOS apps, it just runs them natively, albeit in a way that allows attaching the debugger. |
@mansidak Did you ever find an answer? I saw that you posted on StackOverflow as well, and unfortunately no one has answered or even commented. You say:
I suppose that you mean that Assuming that you verified that the helper is installed, which based on your description I expect to be the case, the next question is whether the problem is in the main app calling out to the helper, or in the helper launching a sub-process. Debugging a helper is kind of pain, but in the helper's If after doing that you get no corresponding output in the main app, then the helper isn't being called, which would be some kind of XPC failure. In that case, it's probably an entitlement issue. On the other hand, if you do get the |
FYI: I started a bounty on your SO question. I saw that you didn't have enough reputation there to do that, and I think nailing down the proper way to notarize an app with a privileged helper tool for distribution is worthy of more attention... I'm certainly interested in learning the answer. After trying the things I suggest, please update your question there with relevant info. Specifically say whether the helper is actually being installed using the notarized version, and if is, whether you can verify if the tool is being called or not. If it's not being installed include whatever error |
Also I noticed that someone edited your question to remove the |
Also something that might make a difference, which I haven't noticed until now since I'm for now stuck on Big Sur, but I just found out that Apple has deprecated |
Hi @chipjarred do you have a resolution to this issue? I'm quite interested as well, I'd also appreciate the link to the SO issue you were referring earlier |
This is what happened:
On the other hand, when I export the app WITHOUT notarization, it works just fine. Any clue what could be going on?
The text was updated successfully, but these errors were encountered: