John O'Reilly

    John O'Reilly

    2 years ago
    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?
    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 )
    I should add this is with XCode 12 beta so perhaps that's a factor
    Luka

    Luka

    2 years ago
    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.
    John O'Reilly

    John O'Reilly

    2 years ago
    @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
    Luka

    Luka

    2 years ago
    Thx, will check it out.
    John O'Reilly

    John O'Reilly

    2 years ago
    just to mention that above error was caused by https://youtrack.jetbrains.com/issue/KT-40782#comment=27-4313806