https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

John O'Reilly

07/30/2020, 5:55 PM
Started testing with newly available
1.3.8-native-mt-1.4.0-rc
version of kotlinx coroutines. Looking good so far on Android and iOS but now on macOS I'm seeing following (when building in XCode)....has anyone else come across this?
Copy code
Undefined symbols for architecture x86_64:
  "__kernelrpc_mach_port_destroy_trap", referenced from:
      _platform_darwin__kernelrpc_mach_port_destroy_trap_wrapper850 in common(result.o)
     (maybe you meant: knifunptr_platform_darwin883__kernelrpc_mach_port_destroy_trap, _platform_darwin__kernelrpc_mach_port_destroy_trap_wrapper850 )
👀 2
I should add this is with XCode 12 beta so perhaps that's a factor
l

Luka

07/31/2020, 7:14 AM
Can you please post some example or link to show how to launch coroutines on bg thread on ios with 1.3.8-native-mt-1.4.0-rc? I would be very grateful because not so many examples online and lots of them are outdated i think.
j

John O'Reilly

07/31/2020, 7:52 AM
@Luka I'm using
1.3.5-native-mt
in following but should be same approach (that particular repo uses SQLDelight which doesn't have a 1.4.x version yet so haven't been able to update it yet) - https://github.com/joreilly/PeopleInSpace
l

Luka

07/31/2020, 8:04 AM
Thx, will check it out.
j

John O'Reilly

08/03/2020, 7:40 PM
just to mention that above error was caused by https://youtrack.jetbrains.com/issue/KT-40782#comment=27-4313806