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