Post

Replies

Boosts

Views

Activity

Reply to Updating an FSKit module to use the new Handler protocols
Unfortunately, it doesn't look like there is a plan to fix this as FB24356249 was closed as "works as currently designed." (I'm guessing that since they're already released it would be too much to change the protocol.) However, I did receive a response to FB24356249 that outlines a solution to this, which I'll post here for the benefit of anyone who finds this thread later: Thank you for reporting this issue. Unfortunately there is no one FSVolume subclass which will satisfy both FSVolume.ReadWriteOperations and FSVolume.ReadWriteHandler. What we have found works is to create an FSVolume class containing internalRead(from:at:length:into:replyHandler:) functions. Then create two subclasses. Each subclass conforms to either FSVolume.ReadWriteOperations or FSVolume.ReadWriteHandler and the included functions just wrap the internalRead(from:at:length:into:replyHandler:) calls. In this way, the two subclasses only contain wrappers and all core logic is contained in the common FSVolume subclass. By internalRead(from:at:length:into:replyHandler:), we mean functions implementing the underlying read and write operations and having names different from those in FSVolume.ReadWriteHandler. A decent amount of added boilerplate, but other than that it works well enough.
Topic: Core OS SubTopic:
File Systems Q&A
1w
Reply to Updating an FSKit module to use the new Handler protocols
Seems like FB24356249 unfortunately wasn't fixed in time (at least as tested with the Xcode 27 RC). If a volume conforms to all of the legacy Operations protocols and only some of the newer Handler protocols, will macOS 27 clients handle this properly, using the newer implementations where available and the old ones where not? Experimentally, on a macOS 27 RC VM, it seems to work, although I'm not sure if this has risk of breakage.
Topic: Core OS SubTopic:
File Systems Q&A
Sep ’26
Reply to HealthKit entitlement never included in macOS Development/Distribution provisioning profiles despite being enabled on App ID
I'm pretty sure HealthKit on macOS is essentially a no-op and thus an entitlement wouldn't really be of any use anyway. The docs also seem to support this (https://developer.apple.com/documentation/healthkit/about-the-healthkit-framework) While the HealthKit framework is available on iPadOS 16 and earlier and on MacOS 13 and later, these devices don’t have a copy of the HealthKit store. This means you can include HealthKit code in apps running on these devices, simplifying the creation of multiplatform apps. However, they can’t read or write HealthKit data, and calls to isHealthDataAvailable() return false.
Aug ’26
Reply to Updating an FSKit module to use the new Handler protocols
Seems like the issue regarding Handler + Operations support is fixed, so I ended up verifying the fix to FB23036931. Unfortunately, a few days after closing it, I later realized that the same issue seems to apply to ReadWriteOperations + ReadWriteHandler as well as the two kernel offloaded IO protocols, so I also made FB24356249.
Topic: Core OS SubTopic:
File Systems Q&A
Aug ’26
Reply to Failure to mount an FSKit volume *sometimes*
@Xinto As a workaround, when this happens to me, I use this command to try to clear the archived copies from the LaunchServices database: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -R -f -u ~/Library/Developer/Xcode/Archives I've been using it in macOS 26.x, but haven't tested it in macOS 27.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’26
Reply to FSKit: two extension processes after mount, one survives unmount — expected behavior?
Based on what I've seen via a debugger, the process spawned to probe resources is separate from the process(es) spawned to manage each container you mount. I've just been treating those idle processes similar to how I would an idle on-demand launch agent or launch daemon which is able to terminate when it's inactive. That is, I ignore it since the system should manage their lifecycle and the process should use very little resources on idle, but I don't depend on them staying alive for any specific period of time (as maybe the behavior could change in some OS update). Maybe an Apple employee can give a more definitive answer, but I'd be surprised if this weren't intentional, as if a user mounts many volumes in close succession, there would be worse performance for no reason if the probing process had to constantly be relaunched and initialized again for each request. In any case, on my own system, I've definitely used my FSKit extension since I last rebooted my machine, but I no longer see any running processes related to that extension. So it does seem that the process is going to terminate on its own eventually, although I don't know the exact criteria for that.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’26
Reply to FSKit removeItem Not Being Called
Is the way you're determining that removeItem isn't being called simply looking for the logged line in Console and not seeing it? I see the original code uses logger.info("remove: \(name)") and the info level doesn't appear in Console by default when streaming live logs. It might simply be that the function is actually being called but Console just isn't showing the message. You should make sure that Console > Action > Include Info Messages is selected, or use logger.log/a more severe log level instead.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’26
Reply to WWDC Group Labs
[quote='832420021, justinfrombaldwinsville, /thread/832420, /profile/justinfrombaldwinsville'] Also why not record the group labs [/quote] They're already available on YouTube! https://www.youtube.com/@AppleDeveloper/streams
Jun ’26
Reply to Status Code 7000 when attempting to notarize a file
and NEVER once has anyone posted a follow-up that they had the issue resolved. I don't know if the file system engineers are really able to say much about this, but I was curious and found a counterexample where someone solved it via support by searching for "apple notarization error 7000" in the top 3 results (though not on these forums): https://github.com/orgs/tauri-apps/discussions/8630#discussioncomment-12314090
Topic: Core OS SubTopic:
File Systems Q&A
Jun ’26
Reply to Are read-only filesystems currently supported by FSKit?
Just for the record, I'll put the response I got on FB22525990 here: Please [k]now that this is an intentional behavior for the compiler. If there is a witness to the protocol requirement, then it needs to be as available as the requirement. Just dropping the availability constraint because the requirement is optional could easily lead to surprise for other developers, where they think they are witnessing a requirement but actually aren’t.
Topic: App & System Services SubTopic: Core OS Tags:
May ’26
Reply to FSKit module mount fails with permission error on physical disks
@ben_roeder I don't think that is the same issue as what was originally described, and I'm not Apple, but I have seen something similar, although I reproduced it after rebuilding the app with Xcode (FB22516139). Maybe this is what you're hitting. I checked the status on my feedback about that and it says a fix is coming in a future OS update, although I'm not sure specifically which beta version, if any, currently has the fix.
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’26
Reply to Updating an FSKit module to use the new Handler protocols
Unfortunately, it doesn't look like there is a plan to fix this as FB24356249 was closed as "works as currently designed." (I'm guessing that since they're already released it would be too much to change the protocol.) However, I did receive a response to FB24356249 that outlines a solution to this, which I'll post here for the benefit of anyone who finds this thread later: Thank you for reporting this issue. Unfortunately there is no one FSVolume subclass which will satisfy both FSVolume.ReadWriteOperations and FSVolume.ReadWriteHandler. What we have found works is to create an FSVolume class containing internalRead(from:at:length:into:replyHandler:) functions. Then create two subclasses. Each subclass conforms to either FSVolume.ReadWriteOperations or FSVolume.ReadWriteHandler and the included functions just wrap the internalRead(from:at:length:into:replyHandler:) calls. In this way, the two subclasses only contain wrappers and all core logic is contained in the common FSVolume subclass. By internalRead(from:at:length:into:replyHandler:), we mean functions implementing the underlying read and write operations and having names different from those in FSVolume.ReadWriteHandler. A decent amount of added boilerplate, but other than that it works well enough.
Topic: Core OS SubTopic:
File Systems Q&A
Replies
Boosts
Views
Activity
1w
Reply to Updating an FSKit module to use the new Handler protocols
Seems like FB24356249 unfortunately wasn't fixed in time (at least as tested with the Xcode 27 RC). If a volume conforms to all of the legacy Operations protocols and only some of the newer Handler protocols, will macOS 27 clients handle this properly, using the newer implementations where available and the old ones where not? Experimentally, on a macOS 27 RC VM, it seems to work, although I'm not sure if this has risk of breakage.
Topic: Core OS SubTopic:
File Systems Q&A
Replies
Boosts
Views
Activity
Sep ’26
Reply to HealthKit entitlement never included in macOS Development/Distribution provisioning profiles despite being enabled on App ID
I'm pretty sure HealthKit on macOS is essentially a no-op and thus an entitlement wouldn't really be of any use anyway. The docs also seem to support this (https://developer.apple.com/documentation/healthkit/about-the-healthkit-framework) While the HealthKit framework is available on iPadOS 16 and earlier and on MacOS 13 and later, these devices don’t have a copy of the HealthKit store. This means you can include HealthKit code in apps running on these devices, simplifying the creation of multiplatform apps. However, they can’t read or write HealthKit data, and calls to isHealthDataAvailable() return false.
Replies
Boosts
Views
Activity
Aug ’26
Reply to Updating an FSKit module to use the new Handler protocols
Seems like the issue regarding Handler + Operations support is fixed, so I ended up verifying the fix to FB23036931. Unfortunately, a few days after closing it, I later realized that the same issue seems to apply to ReadWriteOperations + ReadWriteHandler as well as the two kernel offloaded IO protocols, so I also made FB24356249.
Topic: Core OS SubTopic:
File Systems Q&A
Replies
Boosts
Views
Activity
Aug ’26
Reply to Failure to mount an FSKit volume *sometimes*
@Xinto As a workaround, when this happens to me, I use this command to try to clear the archived copies from the LaunchServices database: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -R -f -u ~/Library/Developer/Xcode/Archives I've been using it in macOS 26.x, but haven't tested it in macOS 27.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to FSKit: two extension processes after mount, one survives unmount — expected behavior?
Based on what I've seen via a debugger, the process spawned to probe resources is separate from the process(es) spawned to manage each container you mount. I've just been treating those idle processes similar to how I would an idle on-demand launch agent or launch daemon which is able to terminate when it's inactive. That is, I ignore it since the system should manage their lifecycle and the process should use very little resources on idle, but I don't depend on them staying alive for any specific period of time (as maybe the behavior could change in some OS update). Maybe an Apple employee can give a more definitive answer, but I'd be surprised if this weren't intentional, as if a user mounts many volumes in close succession, there would be worse performance for no reason if the probing process had to constantly be relaunched and initialized again for each request. In any case, on my own system, I've definitely used my FSKit extension since I last rebooted my machine, but I no longer see any running processes related to that extension. So it does seem that the process is going to terminate on its own eventually, although I don't know the exact criteria for that.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to FSKit removeItem Not Being Called
Is the way you're determining that removeItem isn't being called simply looking for the logged line in Console and not seeing it? I see the original code uses logger.info("remove: \(name)") and the info level doesn't appear in Console by default when streaming live logs. It might simply be that the function is actually being called but Console just isn't showing the message. You should make sure that Console > Action > Include Info Messages is selected, or use logger.log/a more severe log level instead.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’26
Reply to WWDC Group Labs
[quote='832420021, justinfrombaldwinsville, /thread/832420, /profile/justinfrombaldwinsville'] Also why not record the group labs [/quote] They're already available on YouTube! https://www.youtube.com/@AppleDeveloper/streams
Replies
Boosts
Views
Activity
Jun ’26
Reply to Status Code 7000 when attempting to notarize a file
and NEVER once has anyone posted a follow-up that they had the issue resolved. I don't know if the file system engineers are really able to say much about this, but I was curious and found a counterexample where someone solved it via support by searching for "apple notarization error 7000" in the top 3 results (though not on these forums): https://github.com/orgs/tauri-apps/discussions/8630#discussioncomment-12314090
Topic: Core OS SubTopic:
File Systems Q&A
Replies
Boosts
Views
Activity
Jun ’26
Reply to Are read-only filesystems currently supported by FSKit?
Just for the record, I'll put the response I got on FB22525990 here: Please [k]now that this is an intentional behavior for the compiler. If there is a witness to the protocol requirement, then it needs to be as available as the requirement. Just dropping the availability constraint because the requirement is optional could easily lead to surprise for other developers, where they think they are witnessing a requirement but actually aren’t.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’26
Reply to FSKit module mount fails with permission error on physical disks
@ben_roeder I don't think that is the same issue as what was originally described, and I'm not Apple, but I have seen something similar, although I reproduced it after rebuilding the app with Xcode (FB22516139). Maybe this is what you're hitting. I checked the status on my feedback about that and it says a fix is coming in a future OS update, although I'm not sure specifically which beta version, if any, currently has the fix.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’26