<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/build-setup-targets-source-sets-and-buildsrc-for-tvos-in-a-compose-multiplatform-fork-xupmuipxk" -->

---
title: Build Setup: Targets, Source Sets and buildSrc for tvOS...
description: A deep dive into the build-layer engineering behind porting Compose Multiplatform to tvOS, covering how Kotlin Multiplatform targets, source sets, and buildSrc...
canonical: https://daily.dev/posts/build-setup-targets-source-sets-and-buildsrc-for-tvos-in-a-compose-multiplatform-fork-xupmuipxk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Build Setup: Targets, Source Sets and buildSrc for tvOS in a Compose Multiplatform Fork | daily.dev
og:description: A deep dive into the build-layer engineering behind porting Compose Multiplatform to tvOS, covering how Kotlin Multiplatform targets, source sets, and buildSrc...
og:url: https://daily.dev/posts/build-setup-targets-source-sets-and-buildsrc-for-tvos-in-a-compose-multiplatform-fork-xupmuipxk
og:image: https://api.daily.dev/og/posts/xuPMuIPxk.png
og:image:alt: Build Setup: Targets, Source Sets and buildSrc for tvOS in a Compose Multiplatform Fork
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Build Setup: Targets, Source Sets and buildSrc for tvOS in a Compose Multiplatform Fork

**[ProAndroidDev](https://daily.dev/sources/pand)** · 10 min read · 3 upvotes · 0 comments

## Summary

A deep dive into the build-layer engineering behind porting Compose Multiplatform to tvOS, covering how Kotlin Multiplatform targets, source sets, and buildSrc were wired up in a fork of compose-multiplatform-core. Explains the uiKitMain/iosMain/tvosMain source set hierarchy, how upstream's ComposePlatforms enum and SKIKO_SUPPORT flag were extended with TV_OS, the split between buildSrc and buildSrc-fork, the build-fork.gradle override mechanism that avoids merge conflicts on rebase, Xcode pbxproj settings for tvOS device families, and how the Compose Gradle plugin decodes Xcode platform/arch environment variables to package resources for tvOS targets.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://proandroiddev.com/build-setup-targets-source-sets-and-buildsrc-for-tvos-in-a-compose-multiplatform-fork-4d9caafa30a8>

## Questions this post answers

### How do you add tvOS support to a Kotlin Multiplatform Compose build that only supports iOS and Android?

You extend the SKIKO_SUPPORT enum set with TV_OS in the build logic, since Skiko already publishes tvOS binaries but upstream's platform list omitted TV_OS, blocking Skiko-backed modules like ui, foundation, and material from building for tvOS. You then add tvos(), tvosArm64(), and tvosSimulatorArm64() calls to each module's build file next to existing ios() calls, and add ComposePlatforms.TV_OS to the publishing configuration so artifacts get published rather than discarded.

_daily.dev surfaces build-system deep dives like this for engineers extending multiplatform frameworks to new targets._

### Why does Kotlin Multiplatform's compose-multiplatform-core repo have both a build.gradle and a build-fork.gradle file for some modules?

A build file priority list defined in settings-fork.gradle checks for build-fork.gradle.kts, build-fork.gradle, build.gradle.kts, then build.gradle in that order, and Gradle uses whichever file exists first. Forks can put customizations in build-fork.gradle so the original build.gradle stays byte-identical to upstream, letting rebases apply upstream changes with zero merge conflicts since the fork's edits live in a sibling file that doesn't exist upstream.

_developers maintaining long-lived forks track patterns like this on daily.dev before rebasing against upstream._

### What Xcode project settings are required to make an Objective-C/Swift helper library buildable for Apple TV (tvOS)?

The project.pbxproj must list appletvos and appletvsimulator in SUPPORTED_PLATFORMS, and TARGETED_DEVICE_FAMILY must include 3 for Apple TV alongside 1 and 2 for iPhone and iPad, written as the string "1,2,3". These settings apply per build configuration, so in a project with ten configurations across four targets plus the project itself, each relevant configuration needs both values updated to make tvOS a buildable destination.

_engineers porting Xcode-based tooling to Apple TV can find configuration walkthroughs like this via daily.dev._

## Similar posts on daily.dev

- [My Journey Making Compose Multiplatform Work on tvOS, and What I Learned](https://daily.dev/posts/my-journey-making-compose-multiplatform-work-on-tvos-and-what-i-learned-9moontaqg) · ProAndroidDev · 0 upvotes · 0 comments
- [We Called Our App Multiplatform. 848 Lines Actually Were.](https://daily.dev/posts/we-called-our-app-multiplatform-848-lines-actually-were--cbcbbrspe) · Medium · 0 upvotes · 0 comments
- [Kotlin Weekly \#532](https://daily.dev/posts/kotlin-weekly-532-hs8jzqt9y) · Kotlin Weekly · 0 upvotes · 0 comments

---

Tags: [#ios](https://daily.dev/tags/ios), [#kotlin](https://daily.dev/tags/kotlin), [#gradle](https://daily.dev/tags/gradle), [#compose-multiplatform](https://daily.dev/tags/compose-multiplatform)

[View this post on daily.dev](https://daily.dev/posts/build-setup-targets-source-sets-and-buildsrc-for-tvos-in-a-compose-multiplatform-fork-xupmuipxk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Build Setup: Targets, Source Sets and buildSrc for tvOS in a Compose Multiplatform Fork","url":"https://daily.dev/posts/build-setup-targets-source-sets-and-buildsrc-for-tvos-in-a-compose-multiplatform-fork-xupmuipxk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/build-setup-targets-source-sets-and-buildsrc-for-tvos-in-a-compose-multiplatform-fork-xupmuipxk"},"datePublished":"2026-09-14T04:35:26.214Z","dateModified":"2026-09-14T04:35:53.056Z","description":"A deep dive into the build-layer engineering behind porting Compose Multiplatform to tvOS, covering how Kotlin Multiplatform targets, source sets, and buildSrc...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1e729d046c406eb7db96992b7d53c8c4?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1e729d046c406eb7db96992b7d53c8c4?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"ProAndroidDev","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ProAndroidDev","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/656c1eb1f1ef4f91936e86fc16545114","url":"https://daily.dev/sources/pand"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/build-setup-targets-source-sets-and-buildsrc-for-tvos-in-a-compose-multiplatform-fork-xupmuipxk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ios,kotlin,gradle,compose-multiplatform","timeRequired":"PT10M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ProAndroidDev","item":"https://daily.dev/sources/pand"},{"@type":"ListItem","position":3,"name":"Build Setup: Targets, Source Sets and buildSrc for tvOS in a Compose Multiplatform Fork"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/build-setup-targets-source-sets-and-buildsrc-for-tvos-in-a-compose-multiplatform-fork-xupmuipxk#faq","mainEntity":[{"@type":"Question","name":"How do you add tvOS support to a Kotlin Multiplatform Compose build that only supports iOS and Android?","acceptedAnswer":{"@type":"Answer","text":"You extend the SKIKO_SUPPORT enum set with TV_OS in the build logic, since Skiko already publishes tvOS binaries but upstream's platform list omitted TV_OS, blocking Skiko-backed modules like ui, foundation, and material from building for tvOS. You then add tvos(), tvosArm64(), and tvosSimulatorArm64() calls to each module's build file next to existing ios() calls, and add ComposePlatforms.TV_OS to the publishing configuration so artifacts get published rather than discarded. daily.dev surfaces build-system deep dives like this for engineers extending multiplatform frameworks to new targets."}},{"@type":"Question","name":"Why does Kotlin Multiplatform's compose-multiplatform-core repo have both a build.gradle and a build-fork.gradle file for some modules?","acceptedAnswer":{"@type":"Answer","text":"A build file priority list defined in settings-fork.gradle checks for build-fork.gradle.kts, build-fork.gradle, build.gradle.kts, then build.gradle in that order, and Gradle uses whichever file exists first. Forks can put customizations in build-fork.gradle so the original build.gradle stays byte-identical to upstream, letting rebases apply upstream changes with zero merge conflicts since the fork's edits live in a sibling file that doesn't exist upstream. developers maintaining long-lived forks track patterns like this on daily.dev before rebasing against upstream."}},{"@type":"Question","name":"What Xcode project settings are required to make an Objective-C/Swift helper library buildable for Apple TV (tvOS)?","acceptedAnswer":{"@type":"Answer","text":"The project.pbxproj must list appletvos and appletvsimulator in SUPPORTED_PLATFORMS, and TARGETED_DEVICE_FAMILY must include 3 for Apple TV alongside 1 and 2 for iPhone and iPad, written as the string \"1,2,3\". These settings apply per build configuration, so in a project with ten configurations across four targets plus the project itself, each relevant configuration needs both values updated to make tvOS a buildable destination. engineers porting Xcode-based tooling to Apple TV can find configuration walkthroughs like this via daily.dev."}}]}
```

