Skip to content
Sync Kotlin files with an Xcode project
Branch: master
Clone or download
Latest commit 05c5cfb May 11, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.buildscript Import Jan 30, 2019
gradle-plugin Version 0.1.5 May 11, 2019
gradle Save dependency add before dumping May 11, 2019
.gitignore Import Jan 30, 2019
.travis.yml Import Jan 30, 2019 Import Jan 30, 2019
LICENSE.txt Import Jan 30, 2019 Version 0.1.5 May 11, 2019 Import Jan 30, 2019
build.gradle Import Jan 30, 2019 Version 0.1.5 May 11, 2019
gradlew Import Jan 30, 2019
settings.gradle Import Jan 30, 2019

Kotlin Xcode Sync

Import kotlin files into an Xcode project. This is used in conjunction with the Xcode Kotlin plugin to allow for Kotlin/Native debugging in an iOS application.

Importing Kotlin files into Xcode is somewhat tricky to do manually. This plugin will facilitate that.

It is called "Sync", but currently it will only add new files. Renamed or removed files will need to be handled manually in Xcode.


Add the following to the buildscript section:

buildscript {
    dependencies {
        classpath 'co.touchlab:kotlinxcodesync:0.1.5'

Apply the plugin in the shared code project, and configure the plugin

apply plugin: 'co.touchlab.kotlinxcodesync'

xcode {
  projectPath = "../../iosApp/iosApp.xcodeproj"
  target = "iosApp"

The 'projectPath' points at the Xcode project folder. 'target' is the target inside the Xcode project. There's also the optional parameter 'group', which by default is set to 'Kotlin'. That is the group folder that files are copied into.

You can’t perform that action at this time.