Hello,
I am developing a native SwiftUI encrypted file vault application for macOS, intended for distribution through the Mac App Store.
The application should provide an encrypted virtual volume accessible through Finder, without third-party drivers or privileged helpers.
Development environment:
- Apple Silicon
- macOS 27
- Xcode 27.2
- Swift and SwiftUI
- App Sandbox enabled
- Apple Development signing with a Personal Team
I added a File System Extension using the standard Xcode template. After configuring CODE_SIGN_ENTITLEMENTS, the build fails with the following errors:
Provisioning profile doesn't include the FSKit Module capability.
Provisioning profile doesn't include the com.apple.developer.fskit.fsmodule entitlement.
Before proceeding with development and enrolling in the paid Apple Developer Program, I would appreciate clarification on the following questions:
-
Is a paid Apple Developer Program membership required to develop and locally test an FSKit extension? Is there an officially supported alternative for testing with a Personal Team?
-
Are both the
com.apple.developer.fskit.fsmoduleandcom.apple.developer.fskit.mountentitlements available for Mac App Store distribution? Do they require additional approval from Apple? -
What is the officially supported API for programmatically mounting and unmounting an FSKit volume from a sandboxed application without administrator privileges?
-
Can a sandboxed FSKit extension or helper safely unmount a volume or revoke access to encrypted data if the host application crashes or terminates unexpectedly?
-
Can an FSKit extension access encrypted storage located in an arbitrary user-selected directory on an external SSD using security-scoped bookmarks?
-
Are there any additional sandbox, code-signing, provisioning, or Mac App Store distribution restrictions that would prevent this architecture from working?
-
Are there any official sample projects demonstrating the complete lifecycle of a sandboxed FSKit volume, including mounting, read-write operations and safe unmounting?
The application must remain fully sandboxed and must not require disabling SIP or reducing macOS security settings.
Our goal is to validate the feasibility of this architecture before investing further development time.
Thank you for your assistance.
You’ve glommed a lot of questions into a single thread, which makes things challenging. I’m going to respond to your fundamental provisioning questions here. I recommend that you start new threads for the technical aspects of this.
1- Is a paid Apple Developer Program membership required to develop and locally test an FSKit extension?
Pretty much, yes.
There may be ways to get around this — see my reply here — but those are definitely not supported and, IMO, are more hassle than they’re worth.
2- Are both the com.apple.developer.fskit.fsmodule and com.apple.developer.fskit.mount entitlements available for Mac App Store distribution?
Yes.
Oh, and just FYI, once you are part of a paid team you can answer these question for yourself. See Finding a Capability’s Distribution Restrictions for the details.
Do they require additional approval from Apple?
No.
Note I’m talking about the entitlements themselves here. It’s possible that App Review might apply their own constraints. I don’t work for App Review and thus can’t give you definitive answers about their policies. However, AFAICT there are no constraints listed in their guidelines.
7- Are there any official sample projects demonstrating the complete lifecycle of a sandboxed FSKit volume, including mounting, read-write operations and safe unmounting?
The standard sample code for FSKit is Building a passthrough file system. I’ve also found it useful to look at production code, including the msdosfs project in Darwin, which is most enlightening.
Oh, one last thing. The following is a technical question and, as I mentioned above, I think it’d be better placed in its own thread. However, I do want to clarify one bit of terminology.
4- Can a sandboxed FSKit extension or helper safely unmount a volume or revoke access to encrypted data if the host application crashes or terminates unexpectedly?
When talking about app and system extensions on Apple platforms:
- The host app is the app using the extension. In this case of FSKit, the host isn’t an app, but rather the system extension.
- The container app is the app in which the extension is embedded.
If you’re talking about the container app then, in general, FSKit app extensions can and should run independently of their container app.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"