I'm having a problem on macOS 26 that has not happened on previous macOS versions. When I call
guard url.startAccessingSecurityScopedResource() else { return }
try url.bookmarkData(options: [.withSecurityScope])
with url being "file:///", I get an error
Error Domain=NSCocoaErrorDomain Code=256 "File descriptor doesn't match the real path."
Given that Google returns 0 results on this error, I suppose this is a macOS 26 novelty. (The bookmark data created before upgrading to 26 resolve well).
Does anyone already met this or have an idea on how to get around it? The app is a file manager, so having bookmarked access to "/" is crucial.
Does anyone already met this or
This is a known issue (r.157722315) that was introduced as part of security fix late in macOS 26's release cycle. Unfortunately, by the time the issue was identified it was to late to fix for macOS 26.0, however, the issue is considered serious and I expect it to be fixed in the future.
have an idea on how to get around it?
This forum post describes the issue and discusses a potential workaround that I believe would work well for "/".
__
Kevin Elliott
DTS Engineer, CoreOS/Hardware