diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InteropLowering.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InteropLowering.kt index 0f831d3eb48..c184545b38e 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InteropLowering.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InteropLowering.kt @@ -639,6 +639,11 @@ internal class InteropLoweringPart1(val context: Context) : BaseInteropIrTransfo call: IrFunctionAccessExpression, method: IrSimpleFunction ): IrExpression = generateWithStubs(call) { + if (method.parent !is IrClass) { + // Category-provided. + this@InteropLoweringPart1.context.llvmImports.add(method.llvmSymbolOrigin) + } + this.generateObjCCall( this@genLoweredObjCMethodCall, method,