/ ະ དྷ େ L T େ ձ @ വ ؗ ະ དྷ େ Fix build.gradle CommonϞδϡʔϧʹ͋Δbuild.gradleΛमਖ਼͠ ෳͷϓϥοτϑΥʔϜʹରԠͤ͞Δ apply plugin: 'kotlin-multiplatform' kotlin { … } // workaround for https: //youtrack.jetbrains.com/issue/KT-27170 configurations { compileClasspath } task packForXCode(type: Sync) { final File frameworkDir = new File(buildDir, "xcode-frameworks") final String mode = project.findProperty("XCODE_CONFIGURATION") ?.toUpperCase() ?: 'DEBUG' inputs.property "mode", mode dependsOn kotlin.targets.iOS.compilations.main.linkTaskName("FRAMEWORK", mode) from { kotlin.targets.iOS.compilations.main.getBinary("FRAMEWORK", mode).parentFile } into frameworkDir doLast { new File(frameworkDir, 'gradlew').with { text = " #!/bin/bash\nexport 'JAVA_HOME=${System.getProperty("java.home")}'\ncd '$ {rootProject.rootDir}'\n./gradlew \$@\n" setExecutable(true) } } } tasks.build.dependsOn packForXCode iOSͰඞཁͳϑΝΠϧͷੜλεΫ