Setting a sub action in message filter extension causes a crash on iOS 18

The following code runs fine on iPhone with iOS < 18

However with iOS 18 (Release Candidate) it causes a crash of the extension


extension MessageFilterExtension: ILMessageFilterQueryHandling, ILMessageFilterCapabilitiesQueryHandling {
    @available(iOSApplicationExtension 16.0, *)
    func handle(_ capabilitiesQueryRequest: ILMessageFilterCapabilitiesQueryRequest, context: ILMessageFilterExtensionContext, completion: @escaping (ILMessageFilterCapabilitiesQueryResponse) -> Void) {
        let response = ILMessageFilterCapabilitiesQueryResponse()
    response.promotionalSubActions = [ILMessageFilterSubAction.promotionalOffers]
    completion(response)
    }

The problem specifically is the line:

    response.promotionalSubActions = [ILMessageFilterSubAction.promotionalOffers]

Attempting to set a promotionalSubAction (or a transactional sub action) results in an exception with error:

'/usr/lib/swift/libswiftIdentityLookup.dylib' (no such file)`

This only occurs with iOS 18, and it doesn't occur if no subactions are set

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. I'd greatly appreciate it if you could open a bug report, include sample project, sysdiagnose and steps to reproduce, and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report.

I am experiencing the same issue in my app. I filed FB15385442.

Setting a sub action in message filter extension causes a crash on iOS 18
 
 
Q