MacOS Sonoma Beta 5+: Permission Denied Error When Calling saveToPreferences(completionHandler:)

Hello, we are currently getting a permission denied error when calling NEVPNManager saveToPreferences(completionHandler:) on MacOS Sonoma Beta 5 and up only. This seems to be an issue only on an M1 machine, but works fine on Intel and M2 machines.

We haven't made any changes on our end and it was working on all machines on MacOS Sonoma Beta 3 and below.

After upgrading to MacOS Sonoma Beta 5 and up, attempting to call the function results in the permission denied error. We have also verified that the app has the 'Personal VPN' capability.

The exact error we are getting is the following:

Domain=NEVPNErrorDomain Code=5 "permission denied" UserInfo={NSLocalizedDescription=permission denied}

I checked the release notes, but couldn't find anything specific to this issue.

Has anyone experienced something similar and/or have any suggestions for any fixes? Thanks in advanced!

Honestly, this sounds like a bug. But, before I send you down that path…

Is this an App Store app? Or are you shipping independently, using Developer ID signing?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

MacOS Sonoma Beta 5+: Permission Denied Error When Calling saveToPreferences(completionHandler:)
 
 
Q