Kris Wong
09/29/2020, 3:14 PMChannel
is great when using native-mt, but doesn't work with stable.Diego
09/29/2020, 3:50 PM> Task :compileKotlinIosArm64
w: skipping /Users/XXX/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-client-ios-iosarm64/1.3.1/2f594cbbb3394fe255137a805e4b3f02bfcb5cae/ktor-client-ios.klib. The abi versions don't match. Expected '[22]', found '17'. The library produced by 1.3.61-release-13550 compiler
e: Could not find "/Users/XXX/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-client-ios-iosarm64/1.3.1/2f594cbbb3394fe255137a805e4b3f02bfcb5cae/ktor-client-ios.klib" in [/Users/XXX/Documents/Development/CCC/kipling-multiplatform-spike/common, /Users/XXX/.konan/klib, /Users/XXX/.konan/kotlin-native-macos-1.3.72/klib/common, /Users/XXX/.konan/kotlin-native-macos-1.3.72/klib/platform/ios_arm64].
I have tried changing the Kotlin version but when I do that other problems happen. I know Kotlin Multiplatform is in Alpha but it's been a painful experience just to setup the project 😭. Any help will be really appreciate it 🙂Arkadii Ivanov
09/30/2020, 9:13 AMatomicfu
provide atomicity in K/N when updated concurrently from multiple threads?Jamie Craane
09/30/2020, 9:30 AMribesg
09/30/2020, 12:30 PMconst val
as @SharedImmutable
?
I mean… Can it not be?aleksey.tomin
09/30/2020, 1:05 PMbuild/bin/iosArm64/debugFramework/XpointSdkIos.framework
and copy this into build/xcode-ios-frameworks/XpointSdkIos.framework
(from example https://github.com/Kotlin/kmm-sample/)
Next I’ve added this library to Xcode project. When I try to build iOS application for iPhone Xr and I have the error Ignoring file .../build/xcode-ios-frameworks/XpointSdkIos.framework/XpointSdkIos, building for iOS-arm64 but attempting to link with file built for iOS Simulator-x86_64
How can I fix it? How can I build library for iOS-arm64
?Aaron Todd
09/30/2020, 5:38 PMByteArray
backed by native C memory without a copy in Kotlin/Native?Justin
09/30/2020, 10:31 PMSkolson5903
10/01/2020, 8:15 PMOmar Mainegra
10/02/2020, 7:11 PMSIGABRT
in objc_loadWeakRetained ()
. This is the stacktrace
#0 0x00007fff5225a33a in __pthread_kill ()
#1 0x00007fff52304e60 in pthread_kill ()
#2 0x00007fff521e9b7c in abort ()
#3 0x000000010571ada9 in konan::abort() ()
#4 0x000000010573566e in TerminateWithUnhandledException ()
#5 0x00000001057355ba in KonanTerminateHandler() ()
#6 0x00007fff500eec87 in std::__terminate(void (*)()) ()
#7 0x00007fff500eec29 in std::terminate() ()
#8 0x000000010571c571 in (anonymous namespace)::_tryRetainImp(objc_object*, objc_selector*) ()
#9 0x00007fff512b88ce in objc_loadWeakRetained ()
#10 0x0000000104583cf6 in -[PTPusher channelAuthorizationDelegate] at {path}/Pods/libPusher/Library/PTPusher.h:139
#11 0x0000000104582934 in -[PTPusher subscribeToChannel:] at {path}/Pods/libPusher/Library/PTPusher.m:287
#12 0x0000000104582d37 in -[PTPusher subscribeAll] at {path}/Pods/libPusher/Library/PTPusher.m:314
#13 0x0000000104583278 in -[PTPusher pusherConnectionDidConnect:] at {path}/Pods/libPusher/Library/PTPusher.m:374
#14 0x000000010458801f in -[PTPusherConnection webSocket:didReceiveMessage:] at {path}/Pods/libPusher/Library/PTPusherConnection.m:155
#15 0x00000001047c0533 in __30-[SRWebSocket _handleMessage:]_block_invoke at {path}/Pods/SocketRocket/SocketRocket/SRWebSocket.m:836
#16 0x000000010ace3f11 in _dispatch_call_block_and_release ()
#17 0x000000010ace4e8e in _dispatch_client_callout ()
#18 0x000000010acf2d97 in _dispatch_main_queue_callback_4CF ()
#19 0x00007fff23da1869 in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#20 0x00007fff23d9c3b9 in __CFRunLoopRun ()
#21 0x00007fff23d9b8a4 in CFRunLoopRunSpecific ()
#22 0x00007fff38c05bbe in GSEventRunModal ()
#23 0x00007fff49372964 in UIApplicationMain ()
Iaroslav Postovalov
10/03/2020, 3:01 PM-lXXX
flag)?Iaroslav Postovalov
10/04/2020, 11:33 AMPeter Tran
10/04/2020, 8:04 PMijresolvers.gradle
:
initialization script 'C:\Users\ptran\AppData\Local\Temp\1\ijresolvers.gradle': 268: unexpected char: '\' @ line 268, column 106.
sk.path, 'DEBUG_SERVER_PATH=C:\Users\ptr
The error has to do with the path separator '\'. Unfortunately I'm on Windows so the path separator needs to be double-backslash, ie
C:\\Users\\ptr ...
This seems it has to do with with Android Studio's JVM debugger.
What tool generates the file ijresolvers.gradle
?Artur Matsehor
10/05/2020, 10:03 AMdata class State @JvmOverloads constructor(
val loading: Boolean = false,
val data: ResponseBody? = null,
val error: ApiError? = null
)
In Swift, it is resolved to
init(loading: Bool, data: ResponseBody?, error: ApiError?)
Neither with overloads or default valuesatsushi-koshikizawa
10/06/2020, 9:33 AMPaul Woitaschek
10/06/2020, 1:54 PMMatthew Laser
10/06/2020, 6:11 PMresources
folder from a native project? I've poked around quite a bit in the old slack convos here, but I'm still not sure if this approach is still the preferred way of doing things?Matthew Laser
10/06/2020, 6:35 PMMessageBoxW()
for a Windows native dialog in the Github samples, but I'm not sure where else to look for capabilities like thatlouiscad
10/07/2020, 5:40 AMaleksey.tomin
10/07/2020, 8:00 AMThomas
10/07/2020, 6:24 PMAVCaptureSession
which seems to be dropping frames when used from Kotlin Native. When running the example code below, the didDropSampleBuffer function is called a lot (see logcat). It appears that calling GC.collect()
from didOutputSampleBuffer
fixes the issue. Does anyone know what is going wrong here? Is it alright to call GC.collect()
in this case or is the code wrong (leaking memory?)?
I have also uploaded a sample project to GitHub: https://github.com/Thomas-Vos/IosAVExample. If you would like to try the code, you need to run it on a real iPhone because the simulator does not have a camera.Paul Woitaschek
10/08/2020, 9:33 AMPaul Woitaschek
10/08/2020, 11:29 AMKotlin/Native libraries help to share Kotlin code between projects. POSIX, gzip, OpenGL, Metal, Foundation, and many other popular libraries and Apple frameworks are pre-imported and included as Kotlin/Native libraries into the compiler package.But I can't find anything on that. What does this mean and how can I use these?
Lukasz Sliwinski
10/09/2020, 9:46 AMorg.jetbrains.kotlin.native.cocoapods
plugin are focused on the scenario that the Android and iOS apps are in the same mono repo and iOS app consumes the Kotlin/Native framework locally - as the added script_phases
runs gradlew to adjust the used framework. But when the framework is consumed from the github via cocoapods then there there is an error gradlew: No such file or directory
(https://github.com/JetBrains/kotlin-native/issues/3140). The best would be if on the consumer side java/gralde/gradlew won’t be needed which probably would require Fat framework with (arm64 and x64 binaries)edhu
10/10/2020, 4:17 PMheaders = gumbo.h curl/curl.h
headerFilter = gumbo/* curl/*
compilerOpts.linux = -I/usr/include -I/usr/include/x86_64-linux-gnu -I/usr/local/Cellar/gumbo-parser/0.10.1/include
compilerOpts.osx = -I/usr/include -I/usr/include/x86_64-linux-gnu -I/usr/local/Cellar/gumbo-parser/0.10.1/include
linkerOpts.osx = -L/opt/local/lib -L/usr/local/opt/curl/lib -lcurl -L/usr/local/Cellar/gumbo-parser/0.10.1/lib -lgumbo
linkerOpts.linux = -L/usr/lib/x86_64-linux-gnu -lcurl
there are no compile errors. curl interops are still generated. but there is nothing for gumbo. this is all using the gradle plugin in intellij for macosx64.
since this is not outputting anything for gumbo parser, i did it manually:
cinterop -def interop.def -o gumbo
and then:
klib contents gumbo
and this also outputs nothing. if i try it manually for curl it does output all the info.
why is there nothing happening for gumbo parser?
thanks in advance!Iaroslav Postovalov
10/11/2020, 7:39 AMChristian Sousa
10/12/2020, 4:09 PMThread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
Does anyone knows what might be causing this? This is not happening on our current implementation using 1.3.70, so it might be something that might’ve changed in this new release.
Any help would be really nice!
Thanks in advance!Iaroslav Postovalov
10/14/2020, 5:22 PMIaroslav Postovalov
10/15/2020, 7:16 AMIaroslav Postovalov
10/15/2020, 9:25 AM