tevjef
05/10/2019, 1:39 AMPaul Idstein
05/10/2019, 8:29 AMexpect class Image
actual typealias Image = platform.CoreVideo.CVPixelBufferRef // iOS - 'declaration is incompatible because number of type parameters is different'
Thomas
05/10/2019, 6:01 PM> Task :common:generateDefCrashlytics
> Task :common:cinteropCrashlyticsIOS
Exception in thread "main" org.jetbrains.kotlin.konan.KonanExternalToolFailure: The /Users/thomas/.konan/dependencies/clang-llvm-6.0.1-darwin-macos/bin/clang command returned non-zero exit code: 1.
at org.jetbrains.kotlin.konan.exec.Command.handleExitCode(ExecuteCommand.kt:105)
at org.jetbrains.kotlin.konan.exec.Command.getResult(ExecuteCommand.kt:94)
at org.jetbrains.kotlin.konan.exec.Command.getOutputLines(ExecuteCommand.kt:73)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.runCmd(main.kt:66)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:281)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:38)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:67)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:18)
> Task :common:cinteropCrashlyticsIOS FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':common:cinteropCrashlyticsIOS'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD FAILED in 5s
2 actionable tasks: 2 executed
Command PhaseScriptExecution failed with a nonzero exit code
I don’t know what I need to look at as the exception doesn’t really show the cause of the issue. In case it might be related; I am using the Cocoapods plugin and have a Crashlytics pod in the Gradle file. Anyone have any ideas how to proceed?tapchicoma
05/10/2019, 8:05 PMNon-final Kotlin classes inheriting Swift/Objective-C types aren't supported yet, so it is not possible to declare a complex class hierarchy inheriting Swift/Objective-C types.Any plans to remove this restriction? At least for the classes in the same module?
RemusRD
05/10/2019, 11:03 PMJake
05/11/2019, 7:56 PMbinary
build option to retrieve a Kotlin Native Framework?David Stolarsky
05/12/2019, 9:30 AMUncaught Kotlin exception: kotlin.native.IncorrectDereferenceException: illegal attempt to access non-shared kotlin.collections.HashMap@8015aa08 from other thread
How do I go about avoiding this? Can I simply make the HashMap in question shared? Immutable? Freeze it? Throw a bunch of DispatchQueue.main.async { }
wrappers everywhere?
The stack trace goes from Kotlin to Swift and back to Kotlin at least once, likely more than once.
The thread that is crashing is com.google.firebase.auth.globalWorkQueue
landoulsi
05/13/2019, 8:51 AMGlobalScope.launch {
}
it fails to build the project :
e: /MultiplatformApp/SharedCode/src/commonMain/kotlin/common.kt: (3, 16): Unresolved reference: coroutines
e: /MultiplatformApp/SharedCode/src/commonMain/kotlin/common.kt: (4, 16): Unresolved reference: coroutines
e: /MultiplatformApp/SharedCode/src/commonMain/kotlin/common.kt: (9, 5): Unresolved reference: GlobalScope
Simple project is available at github: https://github.com/landoulsi/MultiplatformApp
Please helplandoulsi
05/13/2019, 9:51 AMlandoulsi
05/13/2019, 10:13 AMserebit
05/13/2019, 5:51 PMelect
05/13/2019, 5:57 PMPaul Idstein
05/15/2019, 8:44 AMdata class KotlinData(val a: String)
fun <O> createInstance(val classifier: KClass<O>): O
In Swift
createInstance(KotlinData.self) <-- Fails as this is not KClass
4ntoine
05/15/2019, 8:53 PMCasper Lans
05/15/2019, 9:04 PM4ntoine
05/15/2019, 9:07 PMarm32
and arm64
are supported. The questions is about android x86
kpgalligan
05/15/2019, 11:15 PM4ntoine
05/16/2019, 5:34 AMjava.security
to be more detailed) from Kotlin code that is compiled with Kotlin/Native into binary (shared library used on android). Any suggestions on how i can achieve it? In regular java code i had to write JNI glue code for this i guess, wondering if i can achieve it more in more elegant way with Kotlinfelislynx
05/16/2019, 9:56 AMantrax
05/16/2019, 11:15 AMkpgalligan
05/16/2019, 4:33 PMlouiscad
05/18/2019, 8:03 PMThe build can take about an hour on a Macbook Pro.and I'm now thinking: "So… to run these simple samples, I need to wait for long… what if I have a MacBook Air? How many hours to run these samples??" Maybe there's another way, but for now, I'm close to dropping that new Kotlin/Native understanding attempt because of that time barrier.
louiscad
05/18/2019, 11:35 PMBrian Stanek
05/20/2019, 2:48 PMclass ListLike(val list: List<String>) {}
works great, but
class ListLike(val list: List<String>) : List<String> by list {}
does not generate an entry in the iOS framework. However, the javascript modules does create all the delegating methods.
Is this a known limitation?Sam
05/20/2019, 8:38 PM1.3.40-EAP1
include the better objc interop PR that was recently merged?David Stolarsky
05/21/2019, 8:47 AMEXC_BAD_ACCESS
in an Objective-C++ object deallocation stack in thread Queue: com.google.firebase.firestore (serial)
where it is, er, "releasing its reference" to a Swift closure I passed it. Inside the Swift closure is a reference* to a Kotlin lambda that was passed into my Swift code from my Kotlin code. when I refactor the code to not pass the Kotlin lambda into Swift, the crash (seems to**) go away. Am I missing something obvious? Should I .freeze()
that lambda?
*The Kotlin lambda does not need to be called for the crash to occur.
**The crash is known to both occur and not occur without any code changes, but I seem to have found a configuration where it reliably happened 100% of the time, then refactoring out the lambda made it go away.. could theoretically still be a red herring.elect
05/21/2019, 10:54 AMDavid Stolarsky
05/22/2019, 6:11 AM.freeze()
, is there a way to mark a method or lambda as non mutating, so i can call it from Swift without creating a kotlin.native.concurrent.InvalidMutabilityException
?ribesg
05/22/2019, 1:11 PMoleksandr.stepanov
05/23/2019, 9:20 AMoleksandr.stepanov
05/23/2019, 9:20 AMsunbreak
05/23/2019, 9:25 AMyshrsmz
05/23/2019, 9:39 AMoleksandr.stepanov
05/23/2019, 11:36 AMegorand
05/23/2019, 12:07 PMkpgalligan
05/23/2019, 2:29 PM