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
Filip Dolník
01/30/2024, 3:12 PM
Hi! This sounds like a bug. If the suspend function generated by SKIE is visible from Swift then it should not crash.
Filip Dolník
01/30/2024, 3:14 PM
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?
Filip Dolník
01/30/2024, 3:56 PM
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
Florian Herzog
01/30/2024, 4:31 PM
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.