-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Codesign question #5
Comments
Look at the logging in Console.app. It should usually log why it was denied. The helper app is automatically code-signed when building for release: https://github.com/sindresorhus/LaunchAtLogin/blob/c773d4ed5d435542c8d2bdb09166ff3ae146e409/LaunchAtLogin/copy-helper.sh#L12 |
Thanks for quick response.
Right, and I verified that both parent app and helper have signatures. In Console.app I found couple of errors related to my process, but I don't think they are about LaunchAtLogin. Also they don't appear on subsequent switching of LaunchAtLogin option.
Also nothing interesting in "All messages" filtered by my process. |
"After" meaning on the next line? (Like below) LaunchAtLogin.isEnabled = true
print(LaunchAtLogin.isEnabled)
//=> false
I'm using it successfully with both a Developer ID signed app and on the App Store. |
The problem is that either this line fails somehow: But then you should get a message in Console.app or in the Xcode console. Or there's a problem reading the status: Maybe try to use the above code manually and see whether it's something that stops working there? |
After reimplementing your code manually - it started saving state, but doesn't actually launch on login. Thanks for great lib and quick support! Sorry for unknown issue, most likely something was wrong with my setup. |
I found my helper in list of "disabled services". Removing is impossible, after enabling helper still doesn't work. But the same app works completely fine on another machine. |
Thanks for project, it looks very simple but it simply just doesn't work for me.
How can I debug it? After setting
LaunchAtLogin.isEnabled = true
it resets tofalse
.App exported, signed with Developer ID and placed in
/Applications
.The most unknown part for me - how to codesign helper on export? Do I need to create separate app id and provision profile for it?
I'm exporting with "Developer ID" signing to test it (only main app signed), I haven't pushed it to App Store yet.
Tried exporting "for App Store" - can't even continue without creating provisioning profile for helper app.
The text was updated successfully, but these errors were encountered: