# Accessing native macOS API in Compose Multiplatform

DevFeed: [Accessing native macOS API in Compose Multiplatform](<https://devfeed.tech/articles/accessing-native-macos-api-in-compose-multiplatform-25584.md>)

Original publisher: [Read original article](<https://www.marcogomiero.com/posts/2025/compose-desktop-macos-api-jni/>)

Author: Marco Gomiero

Published: 2025-09-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [Posts on Marco Gomiero](<https://devfeed.tech/sources/posts-on-marco-gomiero.md>)

Topics: [compose-multiplatform](<https://devfeed.tech/topics/compose-multiplatform.md>), [macOS](<https://devfeed.tech/topics/macos.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [compose](<https://devfeed.tech/tags/compose.md>), [compose-multiplatform](<https://devfeed.tech/tags/compose-multiplatform.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [macos](<https://devfeed.tech/tags/macos.md>), [multiplatform](<https://devfeed.tech/tags/multiplatform.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

This tutorial explains how to access native macOS APIs from a JVM-based Compose Multiplatform desktop application. It presents a bridge using a native dynamic library and JNI, and describes using Kotlin/Native to interact with Apple frameworks without writing Objective-C.

## Source excerpt

Compose Multiplatform is an amazing framework for building desktop applications that run on the JVM (Java Virtual Machine) on multiple platforms (macOS, Windows, and Linux). However, things get trickier if platform-specific APIs, like iCloud on macOS, are needed. These APIs are tied to their native platforms and aren't designed to be easily shared across multiple targets. Integrating such APIs into a Compose Multiplatform (in this article, when I mention Compose Multiplatform, I'm referring to Compose Multiplatform Desktop apps that run on the JVM) project requires some additional setup and "creativity".