ExtensionFoundation on iOS 26

Hi, I'm trying to add an extension to my app on iOS 26. I've followed the instructions on https://developer.apple.com/documentation/extensionfoundation/adding-support-for-app-extensions-to-your-app

and made it as far as being able to launch the extension:

let monitor = try await AppExtensionPoint.Monitor(appExtensionPoint: .localWebServerExtension)
currentIdentity = monitor.identities.first
if let currentIdentity = currentIdentity {
    let myConfig = AppExtensionProcess.Configuration(appExtensionIdentity: currentIdentity, onInterruption: { NSLog("extension was terminated") })
    myProcess = try await AppExtensionProcess(configuration: myConfig)
     myConnection = try myProcess?.makeXPCConnection()
}

None of these calls throw, and when I examine myProcess from inside that code, it seems to be normal (there's a pid, for example).

Yet the code inside my extension seems to not be executed: breakpoints are not triggered, NSLog() calls do not appear on the console. The onInterruption() callback is also not triggered, or at least it does not appear on the console either.

I've probably missed something obvious, but what could it be?

This might help: although there are no issues on Xcode, when I upload the app I get the following error:

Validation failed Invalid Info.plist value. The value of the EXExtensionPointIdentifier key, AsheKube.app.a-Shell.localWebServer, in the Info.plist of “a-Shell.app/Extensions/localWebServer.appex” is invalid. Please refer to the App Extension Programming Guide at https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/Action.html#/apple_ref/doc/uid/TP40014214-CH13-SW1. (ID: 35ef96bf-3831-466e-b793-4bbd69f5c0c5)

Unfortunately, there is nothing on the linked web page about ExtensionFoundation or about what should be in the Info.plistfile.

Answering my own question: the extension is running separately, in order to see breakpoints or calls to NSLog, I need to start the extension in XCode, not the main app.

And to answer the second question, the proper value for the "EXExtensionPointIdentifier" key seems to be: "com.example.example-extension"

ExtensionFoundation on iOS 26
 
 
Q