The lack of Apple documentation on ExtensionFoundation (and ExtensionKit) is almost funny. What can it do? What can it not do? The sum of all knowledge is: “try it and find out”.
I’ve made it as far as: myProcess = try await AppExtensionProcess(configuration: myConfig), which doesn’t cause an error and returns… but not a single line in the extension code is executed.
It’s running! Not working as intended, of course, but at least running.
Thousands of thanks to
@khaost who has the only working example of iOS extensions (that I could find):
https://github.com/KhaosT/UIExtensionExample
GitHub - KhaosT/UIExtensionExample: ExtensionKit demo for iOS 26
ExtensionKit demo for iOS 26. Contribute to KhaosT/UIExtensionExample development by creating an account on GitHub.
GitHubOn the other hand, I cannot upload to the AppStore because Xcode generates an Info.plist file that the AppStore rejects. Fun times.
Being desperate, I asked the question on the developer forums... and got an answer! "Ah, we didn't envision people using extensions within their own iOS apps. That's not forbidden, but it breaks the AppStore checking process. Please file bug report; we'll get back to you".
Literally, the answer was: “you're trying to create extensions that are specifically for "your" apps’ usage, and that's a distinct use case that we need to more actively consider.” (I appreciate the diplomacy in the wording)
(He confirmed that 3rd party App Extensions are still prohibited on the AppStore)