Hi everyone, has anyone tried using SKIE for Corou...
# touchlab-tools
f
Hi everyone, has anyone tried using SKIE for CoroutinesInterop for a transient dependency? We have suspend functions in an internal dependency which is also exported to a xcframeowork. We have configured SKIE in the project which produces the xcframework. But calling a dependencie`s suspend function from a swift Task other than main results in the known crash. Is there something else which has to be configured? I have seen that there is
defaultArgumentsInExternalLibraries
for default arguments. Is there a similar option for suspend functions?
f
Hi! This sounds like a bug. If the suspend function generated by SKIE is visible from Swift then it should not crash.
What version of SKIE do you have? What does the crash say / what’s in the stack trace? And can you please share the function and its usage that causes the crash?
Are you sure that the code works without SKIE? At first glance the error looks like a problem with undeclared exception (missing @Throws annotation).
f
Indeed it's the missing @Throws. We used KMP-NativeCoroutines before which automatically converted the exceptions to error in the more complicated syntax. Thanks for the fast resolution👍🏻 SKIE works totally fine.
1