Nikolai
03/17/2019, 3:22 AMdependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-native:$coroutines_version"
}
to iosMain dependences because my project uses coroutines in common part. After that I changed graddlew to update graddle version. Then I run buildDependences task to build all dependences. Success, after that I tried to run XCode project but got error:
* What went wrong:
Could not determine the dependencies of task ':app:copyFramework'.
> Task with path 'linkDebugFrameworkIos' not found in project ':app'.
I went to IDEA and found that 'copyFramework' task depends on 'linkDebugFrameworkIos', but I didn't find it in graddle tasks list.
task copyFramework {
def buildType = project.findProperty("kotlin.build.type") ?: "DEBUG"
def target = project.findProperty("kotlin.target") ?: "ios"
dependsOn "link${buildType.toLowerCase().capitalize()}Framework${target.capitalize()}"
doLast {
def srcFile = kotlin.targets."$target".compilations.main.getBinary("FRAMEWORK", buildType)
def targetDir = getProperty("configuration.build.dir")
copy {
from srcFile.parent
into targetDir
include 'app.framework/**'
include 'app.framework.dSYM'
}
}
}
I assume that when I upgraded graddle and changed graddlew it somehow removed this task.
How can I fix it?galex
03/18/2019, 10:17 AMMatouš Skála
03/18/2019, 2:30 PMmain.framework
and I haven't found a way to change this.
https://github.com/JetBrains/kotlin-examples/blob/master/tutorials/mpp-iOS-Android/SharedCode/build.gradlegumil
03/18/2019, 4:08 PMDico
03/18/2019, 8:43 PMgalex
03/19/2019, 6:52 AMLiang Song
03/19/2019, 9:37 AMczuckie
03/19/2019, 1:10 PMstanislav
03/19/2019, 2:30 PMribesg
03/20/2019, 10:38 AMstanislav
03/20/2019, 2:30 PMbasher
03/20/2019, 5:09 PMDuplicate JVM class name
issues working with `expect`/`actual`?Nicolas
03/20/2019, 7:08 PMimport android.content.*
in my mpp project. What do I need to add to my build.gradle
to make it work? thanks in advance.uli
03/21/2019, 8:39 AMstanislav
03/21/2019, 10:46 AMmutation attempt of frozen io.ktor.client.request.HttpRequestPipeline@8275c448
on iOS.raulraja
03/21/2019, 12:56 PMivan.savytskyi
03/21/2019, 4:18 PM1.3.21
what version of KN it uses? Running the build with info I see kotlin-native-macos-1.1.2
but I can’t figure out where is this configuration comes from? And how for instance to configure MPP plugin to use different KN version (I saw from change logs that new `1.2.0`one is available)galex
03/22/2019, 7:10 AMLiang Song
03/22/2019, 9:34 PMThe compiler versions don't match either. Expected '[1.2]', found '1.1.1-release-6082'
,
kotlinx-coroutines-core-native.klib. The abi versions don't match. Expected '[8]', found '5'
build failed after the two warnings Could not find kotlinx-coroutines-core-native.klib
John Lutteringer
03/22/2019, 10:55 PMbasher
03/24/2019, 2:35 AMBCryptGenRandom
. At link time, I get undefined reference to 'BCryptGenRandom'
. Here are the linker settings I have for my mingw test target:
targetFromPreset(presets.mingwX64, 'mingw') {
compilations.test.linkerOpts '-Wl,--subsystem,windows,-L"C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.17763.0\\um\\x64\\bcrypt.lib"'
}
I think I may have overdone it with the full path to bcrypt.lib there, but I'm trying everything. Any advice here would be appreciated! First time attempting to get my K/N code working for mingw. Thanks!Jake
03/24/2019, 6:34 PMJohn Lutteringer
03/25/2019, 6:21 AMGarouDan
03/25/2019, 11:39 AMjava.util.Date().javaClass.but can we do something similar to get the same result with.namepackage
stdlib-common
?thana
03/25/2019, 11:51 AMverachadw
03/25/2019, 2:17 PMgalex
03/25/2019, 7:37 PMKris Wong
03/27/2019, 3:31 PMSam
03/27/2019, 4:21 PMclean
it is fine until I make a change and rerun my tests. When I run with --info
it appears that one of the files is being detected as modified twice.
> Task :myappcore:compileTestKotlinJvm FAILED
Task ':myappcore:compileTestKotlinJvm' is not up-to-date because:
Input property 'commonSourceSet$kotlin_gradle_plugin' file /source/path/app/myappcore/src/commonTest/kotlin/net/myapp/core/dice/RollStreamTests.kt has changed.
Input property 'source' file /source/path/app/myappcore/src/commonTest/kotlin/net/myapp/core/dice/RollStreamTests.kt has changed.
Using Kotlin/JVM incremental compilation
Options for KOTLIN DAEMON: IncrementalCompilationOptions(
super=CompilationOptions(compilerMode=INCREMENTAL_COMPILER,
targetPlatform=JVM,
reportCategories=[0],
reportSeverity=2,
requestedCompilationResults=[0]),
areFileChangesKnown=true,
modifiedFiles=[
/source/path/app/myappcore/src/commonTest/kotlin/net/myapp/core/dice/RollStreamTests.kt,
/source/path/app/myappcore/src/commonTest/kotlin/net/myapp/core/dice/RollStreamTests.kt],
deletedFiles=[],
workingDir=/source/path/app/myappcore/build/kotlin/compileTestKotlinJvm,
multiModuleICSettings=MultiModuleICSettings(buildHistoryFile=/source/path/app/myappcore/build/kotlin/compileTestKotlinJvm/build-history.bin, useModuleDetection=false),
usePreciseJavaTracking=trueoutputFiles=[
/source/path/app/myappcore/build/classes/kotlin/jvm/test,
/source/path/app/myappcore/build/kotlin/compileTestKotlinJvm])
e: /source/path/app/myappCore/src/commonTest/kotlin/net/myapp/core/dice/RollStreamTests.kt: (5, 7): Redeclaration: RollStreamTests
e: /source/path/app/myappcore/src/commonTest/kotlin/net/myapp/core/dice/RollStreamTests.kt: (5, 7): Redeclaration: RollStreamTests
:myappcore:compileTestKotlinJvm (Thread[Task worker for ':',5,main]) completed. Took 0.44 secs.
This is using eap 45 if that matters. The same issue happened under eap 11 and the latest stable as well .Steven
03/27/2019, 5:32 PM