-
Notifications
You must be signed in to change notification settings - Fork 72
Failing to create service in MacOS Ventura #58
New issue
Have a question about this project? Sign up for a 8000 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
Comments
Thank you for posting this. The used method appears to be deprecated. I did not find an alternative yet (hopefully there is one at all). Also, I'd have to double-check whether this occurs on all Ventura machines or just yours 😅 |
+1 on this - macosvpn is unable to create with the same error on every Ventura machine we have. Bummer to hear that it's deprecated, hope this can be fixed in some way! |
Confirmed on several instances of Ventura as a result of the deprecated API. From the thread you posted above, "[t]he problem is that this entire concept is deprecated." |
The issue isn't that the method is deprecated, the method still exists in the OS. The file path of the network preference pane has moved. I have attached an updated version of Keychain.CreateItem.swift that should fix this issue. |
Thank you @bhansontbg for fixing this, totally out of nowhere, can you always do this when I find bugs? 😂 I updated the code, bumped to version This is the release (the attached executable was built for x64, in case you can't build it from scratch). |
@halo - Thanks for the praise, I appreciate it! I downloaded the binary and tried to run it on my M1 mac (Monterey) and Intel mac (Ventura). On both systems I encountered the following error:
What is curious is, when I run the executable generated from xcode, from the xcode release directory, the program works - here is some example output from Ventura: https://pastebin.com/uEb4qXcZ . However, when I copy the same executable to a new location on the file system, the executable fails to unlock the keychain, producing the "Creating Authorization Failed" error above. I believe this happens in Authorizations.swift, and is unrelated to the Ventura error. I believe there is some kind of application signing requirement for macOS in both Ventura and Montery, where an application compiled and ran from xcode may open and modify the keychain, but when it is put into another location it is sandboxed and prevented from modifying the keychain. Unfortunately, I don't know much abou 8000 t macOS gatekeeper, sandboxing, or application signing requirements, so I was hoping maybe you would have some insight into the issue. Do you have any thoughts? |
Sorry, disregard everything I said. It works fine, for some reason it just can't be executed from the Desktop. Tested working on Intel mac running Ventura, fails with "Killed: 9" on M1 running Monterey. I have tested the release from my xcode environment compiled as a universal binary, and it worked on both of my systems. |
That's wonderful news! Thank you so much. I also just noticed that what I published there in my draft release was actually a universal binary (I never updated that setting and thought I had only built a x64). I'll make the release official so that homebrew picks it up. I don't know much about how to handle gatekeeper either. As with everything about this tool, I just go down the rabbit hole and maybe come out again and with some luck it works :) Again, thank you very much for investing this issue and putting your time into it. |
@halo those are great news indeed, until the next release when the function might get removed for real :-) Thank you @bhansontbg for that fix! |
Debug output tail
Also hi.
The text was updated successfully, but these errors were encountered: