Skeptick / libres

Resources generation in Kotlin Multiplatform
Apache License 2.0
204 stars 13 forks source link

Kotlin Multiplatform "Bundle not found" when accessing image #57

Open tethridge opened 8 months ago

tethridge commented 8 months ago

I created a project using the new Compose multiplatform template creator (https://kmp.jetbrains.com/). I then integrated libres and added an image. I added a composable function under commonMain in the composeApp module that includes an image like this:

Image(
    painter = ResImages.ic_baseline_mic_24.painterResource(),
    contentDescription = "Microphone icon",
    colorFilter = ColorFilter.tint(MaterialTheme.colorScheme.onPrimary)
)

This code runs fine on Android, but on iOS I receive an error about the bundle not being found. I can see that the bundle is being generated. Is there another setting that is required?

Uncaught Kotlin exception: kotlin.IllegalStateException: LibresComposeApp.bundle not found
at 0   Fawkes                              0x10058a7f7        kfun:kotlin.Throwable#<init>(kotlin.String?){} + 119 
at 1   Fawkes                              0x100583cdb        kfun:kotlin.Exception#<init>(kotlin.String?){} + 115 
at 2   Fawkes                              0x100583efb        kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 115 
at 3   Fawkes                              0x100584523        kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 115 
at 4   Fawkes                              0x10196088b        kfun:io.github.skeptick.libres.images#bundleWithName__at__platform.Foundation.NSBundle.Companion(kotlin.String){}platform.Foundation.NSBundle + 755

I'm using this as my configuration for libres:

libres {
    generatedClassName = "Res" // "Res" by default
    generateNamedArguments = true // false by default
    baseLocaleLanguageCode = "en" // "en" by default
    camelCaseNamesForAppleFramework = true // false by default
}
Outsider710 commented 7 months ago

I have same issue, have u some solution?

tethridge commented 7 months ago

I ended up going back to the older project structure. I had switched to using the new multi-platform compose structure that is created when using the Kotlin Multi-platform Wizard(https://kmp.jetbrains.com/). The older structure was derived from KaMPKit sometime last year. It has androidApp, iosApp, and shared in the root level of the project.

Once I switched back to the older project structure, my issues went away that I had experienced with SQLDelight and libres.

Fiser12 commented 2 months ago

I have this issue too, any solution?

Here is my error

2024-07-09 01:23:46.373957+0200 Surveys[15056:506950] [loading] Unable to create bundle at URL (file:///Library/Developer/CoreSimulator/Volumes/iOS_22A5282m/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS%2018.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreServices/SystemVersion.bundle): does not exist or not a directory (0)
2024-07-09 01:23:46.374565+0200 Surveys[15056:506950] [loading] Unable to create bundle at URL (file:///Library/Developer/CoreSimulator/Volumes/iOS_22A5282m/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS%2018.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreServices/SystemVersion.bundle): does not exist or not a directory (0)
2024-07-09 01:23:46.374760+0200 Surveys[15056:506950] [loading] Unable to create bundle at URL (file:///Library/Developer/CoreSimulator/Volumes/iOS_22A5282m/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS%2018.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreServices/SystemVersion.bundle): does not exist or not a directory (0)
2024-07-09 01:23:46.868794+0200 Surveys[15056:506950] void * _Nullable NSMapGet(NSMapTable * _Nonnull, const void * _Nullable): map table argument is NULL
2024-07-09 01:23:49.302653+0200 Surveys[15056:506950] [UIFocus] UIKeyboardLayoutStar implements focusItemsInRect: - caching for linear focus movement is limited as long as this view is on screen.
2024-07-09 01:23:49.431770+0200 Surveys[15056:506950] Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 27471_PortraitChoco_iPhone-Simple-Pad_Default
2024-07-09 01:23:52.030392+0200 Surveys[15056:506950] Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 27471_PortraitChoco_iPhone-Simple-Pad_Default
2024-07-09 01:23:54.263353+0200 Surveys[15056:506950] [RTILog] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations
2024-07-09 01:23:54.614356+0200 Surveys[15056:506950] [RTILog] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations
2024-07-09 01:23:54.617048+0200 Surveys[15056:506950] [RTILog] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations
2024-07-09 01:23:55.587344+0200 Surveys[15056:506950] [RTILog] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations
2024-07-09 01:23:57.260535+0200 Surveys[15056:506950] [RTILog] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations
2024-07-09 01:24:00.400996+0200 Surveys[15056:506950] [SystemGestureGate] <0x10c30ed20> Gesture: System gesture gate timed out.
2024-07-09 01:24:00.427444+0200 Surveys[15056:506950] [RTILog] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations
Uncaught Kotlin exception: kotlin.IllegalStateException: LibresComposeApp.bundle not found
    at 0   Surveys                             0x1083fb429        kfun:kotlin.Throwable#<init>(kotlin.String?){} + 105 
    at 1   Surveys                             0x1083f59b5        kfun:kotlin.Exception#<init>(kotlin.String?){} + 101 
    at 2   Surveys                             0x1083f5b75        kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 101 
    at 3   Surveys                             0x1083f6005        kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 101 
    at 4   Surveys                             0x108e26731        kfun:io.github.skeptick.libres.images#bundleWithName__at__platform.Foundation.NSBundle.Companion(kotlin.String){}platform.Foundation.NSBundle + 993 
    at 5   Surveys                             0x107996e89        kfun:naizfit.surveys.images.MainResImages.<init>$lambda$0#internal + 153 
    at 6   Surveys                             0x107996f01        kfun:naizfit.surveys.images.MainResImages.$<init>$lambda$0$FUNCTION_REFERENCE$1.invoke#internal + 49 
    at 7   Surveys                             0x10853cb58        kfun:kotlin.Function0#invoke(){}1:0-trampoline + 72 
    at 8   Surveys                             0x10840e5d4        kfun:kotlin.native.concurrent.SynchronizedLazyImpl#<get-value>(){}1:0 + 916 
    at 9   Surveys                             0x10853eb58        kfun:kotlin.Lazy#<get-value>(){}1:0-trampoline + 72 
    at 10  Surveys                             0x107996432        kfun:naizfit.surveys.images.MainResImages.<get-bundle>#internal + 226 
    at 11  Surveys                             0x1079969c5        kfun:naizfit.surveys.images.MainResImages#<get-trapezoid_men>(){}platform.UIKit.UIImage + 133 
    at 12  Surveys                             0x1079c1b16        kfun:ui.screen.onboarding.bodyTypeScreen#BodyTypeScreen(viewModel.onBoarding.ApiRequestState;kotlin.Function1<domain.OnBoardingEvent,kotlin.Unit>;viewModel.onBoarding.BodyTypeState;viewModel.onBoarding.GenderState;kotlin.Function0<kotlin.Unit>;kotlin.Function0<kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 4342 
    at 13  Surveys                             0x1079acbf7        kfun:ui.navigation.MainNavigation$lambda$35$lambda$34$lambda$33$lambda$22#internal + 903 
    at 14  Surveys                             0x1079b3eb2        kfun:ui.navigation.$MainNavigation$lambda$35$lambda$34$lambda$33$lambda$22$FUNCTION_REFERENCE$30.invoke#internal + 242 
    at 15  Surveys                             0x1079b417d        kfun:ui.navigation.$MainNavigation$lambda$35$lambda$34$lambda$33$lambda$22$FUNCTION_REFERENCE$30.$<bridge-UNNNNNB>invoke(androidx.compose.animation.AnimatedVisibilityScope;androidx.navigation.NavBackStackEntry;androidx.compose.runtime.Composer;kotlin.Int){}#internal + 285 
    at 16  Surveys                             0x10854a4c8        kfun:kotlin.Function4#invoke(1:0;1:1;1:2;1:3){}1:4-trampoline + 104 
    at 17  Surveys                             0x1087fdc18        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(kotlin.Any?;kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 936 
    at 18  Surveys                             0x1088105b1        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNNNB>invoke(kotlin.Any?;kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(kotlin.Any?;kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 289 
    at 19  Surveys                             0x10854a4c8        kfun:kotlin.Function4#invoke(1:0;1:1;1:2;1:3){}1:4-trampoline + 104 
    at 20  Surveys                             0x108e1a5ff        kfun:androidx.navigation.compose.NavHost$lambda$39$lambda$38#internal + 863 
    at 21  Surveys                             0x108e1eae0        kfun:androidx.navigation.compose.$NavHost$lambda$39$lambda$38$FUNCTION_REFERENCE$35.invoke#internal + 112 
    at 22  Surveys                             0x108e1ec29        kfun:androidx.navigation.compose.$NavHost$lambda$39$lambda$38$FUNCTION_REFERENCE$35.$<bridge-UNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 153 
    at 23  Surveys                             0x10853fb98        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 88 
    at 24  Surveys                             0x1087fd2b8        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 792 
    at 25  Surveys                             0x10881031d        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 157 
    at 26  Surveys                             0x10853fb98        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 88 
    at 27  Surveys                             0x1086dba86        kfun:androidx.compose.runtime#CompositionLocalProvider(androidx.compose.runtime.ProvidedValue<*>;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 742 
    at 28  Surveys                             0x10826c198        kfun:androidx.compose.runtime.saveable.SaveableStateHolderImpl.SaveableStateProvider#internal + 2936 
    at 29  Surveys                             0x108271220        kfun:androidx.compose.runtime.saveable.SaveableStateHolder#SaveableStateProvider(kotlin.Any;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){}-trampoline + 96 
    at 30  Surveys                             0x108e22231        kfun:androidx.navigation.compose.SaveableStateProvider#internal + 1281 
    at 31  Surveys                             0x108e22cbf        kfun:androidx.navigation.compose.LocalOwnersProvider$lambda$0#internal + 623 
    at 32  Surveys                             0x108e23090        kfun:androidx.navigation.compose.$LocalOwnersProvider$lambda$0$FUNCTION_REFERENCE$0.invoke#internal + 112 
    at 33  Surveys                             0x108e231d9        kfun:androidx.navigation.compose.$LocalOwnersProvider$lambda$0$FUNCTION_REFERENCE$0.$<bridge-UNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 153 
    at 34  Surveys                             0x10853fb98        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 88 
    at 35  Surveys                             0x1087fd2b8        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 792 
    at 36  Surveys                             0x10881031d        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 157 
    at 37  Surveys                             0x10853fb98        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 88 
    at 38  Surveys                             0x1086db646        kfun:androidx.compose.runtime#CompositionLocalProvider(kotlin.Array<out|androidx.compose.runtime.ProvidedValue<*>>...;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 742 
    at 39  Surveys                             0x108e21bea        kfun:androidx.navigation.compose#LocalOwnersProvider__at__androidx.navigation.NavBackStackEntry(androidx.compose.runtime.saveable.SaveableStateHolder;kotlin.Function2<androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int){} + 1242 
    at 40  Surveys                             0x108e1abe7        kfun:androidx.navigation.compose.NavHost$lambda$39#internal + 1399 
    at 41  Surveys                             0x108e1dcf7        kfun:androidx.navigation.compose.$NavHost$lambda$39$FUNCTION_REFERENCE$31.invoke#internal + 199 
    at 42  Surveys                             0x108e1defd        kfun:androidx.navigation.compose.$NavHost$lambda$39$FUNCTION_REFERENCE$31.$<bridge-UNNNNNB>invoke(androidx.compose.animation.AnimatedContentScope;androidx.navigation.NavBackStackEntry;androidx.compose.runtime.Composer;kotlin.Int){}#internal + 285 
    at 43  Surveys                             0x10854a4c8        kfun:kotlin.Function4#invoke(1:0;1:1;1:2;1:3){}1:4-trampoline + 104 
    at 44  Surveys                             0x1087fdc18        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(kotlin.Any?;kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 936 
    at 45  Surveys                             0x1088105b1        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNNNB>invoke(kotlin.Any?;kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(kotlin.Any?;kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 289 
    at 46  Surveys                             0x10854a4c8        kfun:kotlin.Function4#invoke(1:0;1:1;1:2;1:3){}1:4-trampoline + 104 
    at 47  Surveys                             0x108dd0115        kfun:androidx.compose.animation.AnimatedContent$lambda$12$lambda$11#internal + 2213 
    at 48  Surveys                             0x108dd3e32        kfun:androidx.compose.animation.$AnimatedContent$lambda$12$lambda$11$FUNCTION_REFERENCE$33.invoke#internal + 162 
    at 49  Surveys                             0x108dd402e        kfun:androidx.compose.animation.$AnimatedContent$lambda$12$lambda$11$FUNCTION_REFERENCE$33.$<bridge-UNNNNB>invoke(androidx.compose.animation.AnimatedVisibilityScope;androidx.compose.runtime.Composer;kotlin.Int){}#internal + 222 
    at 50  Surveys                             0x10853fc60        kfun:kotlin.Function3#invoke(1:0;1:1;1:2){}1:3-trampoline + 96 
    at 51  Surveys                             0x1087fd731        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 865 
    at 52  Surveys                             0x108810442        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNNB>invoke(kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(kotlin.Any?;androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 226 
    at 53  Surveys                             0x10853fc60        kfun:kotlin.Function3#invoke(1:0;1:1;1:2){}1:3-trampoline + 96 
    at 54  Surveys                             0x108dda9e5        kfun:androidx.compose.animation#AnimatedEnterExitImpl(androidx.compose.animation.core.Transition<0:0>;kotlin.Function1<0:0,kotlin.Boolean>;androidx.compose.ui.Modifier;androidx.compose.animation.EnterTransition;androidx.compose.animation.ExitTransition;kotlin.Function2<androidx.compose.animation.EnterExitState,androidx.compose.animation.EnterExitState,kotlin.Boolean>;androidx.compose.animation.OnLookaheadMeasured?;kotlin.Function3<androidx.compose.animation.AnimatedVisibilityScope,androidx.compose.runtime. + 13653 
    at 55  Surveys                             0x108dd1a18        kfun:androidx.compose.animation.AnimatedContent$lambda$12#internal + 6280 
    at 56  Surveys                             0x108dd2e84        kfun:androidx.compose.animation.$AnimatedContent$lambda$12$FUNCTION_REFERENCE$25.invoke#internal + 148 
    at 57  Surveys                             0x108dd30c9        kfun:androidx.compose.animation.$AnimatedContent$lambda$12$FUNCTION_REFERENCE$25.$<bridge-UNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}#internal + 153 
    at 58  Surveys                             0x10853fb98        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 88 
    at 59  Surveys                             0x1087fd2b8        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any? + 792 
    at 60  Surveys                             0x10881031d        kfun:androidx.compose.runtime.internal.ComposableLambdaImpl#$<bridge-NNNNB>invoke(androidx.compose.runtime.Composer;kotlin.Int){}kotlin.Any?(androidx.compose.runtime.Composer;kotlin.Any?){}kotlin.Any? + 157 
    at 61  Surveys                             0x10853fb98        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 88 
    at 62  Surveys                             0x108dcb6b1        kfun:androidx.compose.animation#AnimatedContent__at__androidx.compose.animation.core.Transition<0:0>(androidx.compose.ui.Modifier?;kotlin.Function1<androidx.compose.animation.AnimatedContentTransitionScope<0:0>,androidx.compose.animation.ContentTransform>?;androidx.compose.ui.Alignment?;kotlin.Function1<0:0,kotlin.Any?>?;kotlin.Function4<androidx.compose.animation.AnimatedContentScope,0:0,androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){0§ + 16177 
    at 63  Surveys                             0x108e14e96        kfun:androidx.navigation.compose#NavHost(androidx.navigation.NavHostController;androidx.navigation.NavGraph;androidx.compose.ui.Modifier?;androidx.compose.ui.Alignment?;kotlin.Function1<androidx.compose.animation.AnimatedContentTransitionScope<androidx.navigation.NavBackStackEntry>,androidx.compose.animation.EnterTransition>?;kotlin.Function1<androidx.compose.animation.AnimatedContentTransitionScope<androidx.navigation.NavBackStackEntry>,androidx.compose.animation.ExitTransition>?;kotlin.Function1<androidx + 16486 
    at 64  Surveys                             0x108e1bcbe        kfun:androidx.navigation.compose.NavHost$lambda$42#internal + 974 
    at 65  Surveys                             0x108e1e699        kfun:androidx.navigation.compose.$NavHost$lambda$42$FUNCTION_REFERENCE$34.invoke#internal + 217 
    at 66  Surveys                             0x108e1ea29        kfun:androidx.navigation.compose.$NavHost$lambda$42$FUNCTION_REFERENCE$34.$<bridge-UNNNB>invoke(androidx.compose.runtime.Composer?;kotlin.Int){}#internal + 153 
    at 67  Surveys                             0x10853fb98        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 88 
    at 68  Surveys                             0x1086eae06        kfun:androidx.compose.runtime.RecomposeScopeImpl#compose(androidx.compose.runtime.Composer){} + 1030 
    at 69  Surveys                             0x1086aea94        kfun:androidx.compose.runtime.ComposerImpl.recomposeToGroupEnd#internal + 1684 
    at 70  Surveys                             0x1086b1aaa        kfun:androidx.compose.runtime.ComposerImpl#skipCurrentGroup(){} + 2170 
    at 71  Surveys                             0x1086b7d91        kfun:androidx.compose.runtime.ComposerImpl.doCompose#internal + 3633 
    at 72  Surveys                             0x1086b6ed6        kfun:androidx.compose.runtime.ComposerImpl#recompose(androidx.compose.runtime.collection.ScopeMap<androidx.compose.runtime.RecomposeScopeImpl,kotlin.Any>){}kotlin.Boolean + 550 
    at 73  Surveys                             0x1086ce333        kfun:androidx.compose.runtime.CompositionImpl#recompose(){}kotlin.Boolean + 1203 
    at 74  Surveys                             0x10881a071        kfun:androidx.compose.runtime.ControlledComposition#recompose(){}kotlin.Boolean-trampoline + 65 
    at 75  Surveys                             0x1086f7013        kfun:androidx.compose.runtime.Recomposer.performRecompose#internal + 1779 
    at 76  Surveys                             0x1086ffece        kfun:androidx.compose.runtime.Recomposer.runRecomposeAndApplyChanges$lambda$4$lambda$3#internal + 3902 
    at 77  Surveys                             0x108706a6b        kfun:androidx.compose.runtime.Recomposer.$runRecomposeAndApplyChanges$lambda$4$lambda$3$FUNCTION_REFERENCE$13.invoke#internal + 155 
    at 78  Surveys                             0x108706d82        kfun:androidx.compose.runtime.Recomposer.$runRecomposeAndApplyChanges$lambda$4$lambda$3$FUNCTION_REFERENCE$13.$<bridge-UNNB>invoke(kotlin.Long){}#internal + 114 
    at 79  Surveys                             0x10853baf0        kfun:kotlin.Function1#invoke(1:0){}1:1-trampoline + 80 
    at 80  Surveys                             0x108695a82        kfun:androidx.compose.runtime.BroadcastFrameClock.FrameAwaiter.resume#internal + 578 
    at 81  Surveys                             0x108696379        kfun:androidx.compose.runtime.BroadcastFrameClock#sendFrame(kotlin.Long){} + 777 
    at 82  Surveys                             0x108b6abed        kfun:androidx.compose.ui.scene.BaseComposeScene#render(androidx.compose.ui.graphics.Canvas;kotlin.Long){} + 1741 
    at 83  Surveys                             0x108c580b1        kfun:androidx.compose.ui.scene.ComposeScene#render(androidx.compose.ui.graphics.Canvas;kotlin.Long){}-trampoline + 81 
    at 84  Surveys                             0x108bd6478        kfun:androidx.compose.ui.scene.RenderingUIViewDelegateImpl.onRender#internal + 744 
    at 85  Surveys                             0x107b5ebdc        kfun:org.jetbrains.skiko.SkikoRenderDelegate#onRender(org.jetbrains.skia.Canvas;kotlin.Int;kotlin.Int;kotlin.Long){}-trampoline + 92 
    at 86  Surveys                             0x108c3d50c        kfun:androidx.compose.ui.window.RenderingUIView.object-1.render#internal + 332 
    at 87  Surveys                             0x108c60b82        kfun:androidx.compose.ui.window.MetalRedrawerCallbacks#render(org.jetbrains.skia.Canvas;kotlin.Double){}-trampoline + 82 
    at 88  Surveys                             0x108c31efe        kfun:androidx.compose.ui.window.MetalRedrawer.draw#internal + 6302 
    at 89  Surveys                             0x108c351db        kfun:androidx.compose.ui.window.MetalRedrawer.<init>$lambda$0#internal + 491 
    at 90  Surveys                             0x108c37b4f        kfun:androidx.compose.ui.window.MetalRedrawer.$<init>$lambda$0$FUNCTION_REFERENCE$0.invoke#internal + 63 
    at 91  Surveys                             0x108c37c0f        kfun:androidx.compose.ui.window.MetalRedrawer.$<init>$lambda$0$FUNCTION_REFERENCE$0.$<bridge-UNN>invoke(){}#internal + 63 
    at 92  Surveys                             0x10853cb58        kfun:kotlin.Function0#invoke(){}1:0-trampoline + 72 
    at 93  Surveys                             0x108c38955        kfun:androidx.compose.ui.window.DisplayLinkProxy.handleDisplayLinkTick#internal + 165 
    at 94  Surveys                             0x108c38a0d        kfun:androidx.compose.ui.window.DisplayLinkProxy.$imp:handleDisplayLinkTick#internal + 141 
    at 95  QuartzCore                          0x7ff80bfc2e6a     _ZN2CA7Display15DisplayLinkItem9dispatch_ERNS_8SignPost8IntervalILNS2_11CAEventCodeE835322056EEE + 44 
    at 96  QuartzCore                          0x7ff80bfbe9d4     _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 1006 
    at 97  QuartzCore                          0x7ff80bfc5b7d     _ZN2CA7Display11DisplayLink31dispatch_deferred_display_linksEj + 367 
    at 98  UIKitCore                           0x7ff80553646b     _UIUpdateSequenceRun + 54 
    at 99  UIKitCore                           0x7ff8062496a3     schedulerStepScheduledMainSection + 164 
    at 100 UIKitCore                           0x7ff8062488dc     runloopSourceCallback + 67 
    at 101 CoreFoundation                      0x7ff800420cd7     __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 16 
    at 102 CoreFoundation                      0x7ff800420c19     __CFRunLoopDoSource0 + 156 
    at 103 CoreFoundation                      0x7ff800420423     __CFRunLoopDoSources0 + 202 
    at 104 CoreFoundation                      0x7ff80041ab79     __CFRunLoopRun + 934 
    at 105 CoreFoundation                      0x7ff80041a3e2     CFRunLoopRunSpecific + 541 
    at 106 GraphicsServices                    0x7ff811cdd0ca     GSEventRunModal + 136 
    at 107 UIKitCore                           0x7ff80635b042     -[UIApplication _run] + 971 
    at 108 UIKitCore                           0x7ff80635f9f5     UIApplicationMain + 122 
    at 109 SwiftUI                             0x7ffa0b45c436     $s7SwiftUI17KitRendererCommon33_ACC2C5639A7D76F611E170E831FCA491LLys5NeverOyXlXpFAESpySpys4Int8VGSgGXEfU_ + 182 
    at 110 SwiftUI                             0x7ffa0b45c2f3     $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 81 
    at 111 SwiftUI                             0x7ffa0b1d08e4     $s7SwiftUI3AppPAAE4mainyyFZ + 129 
    at 112 Surveys                             0x10798da1d        $s7Surveys6iOSAppV5$mainyyFZ + 29 
    at 113 Surveys                             0x10798dab8        main + 8 (/Users/rgarciah/Developer/naizfit_testers_universal/iosApp/iosApp/iOSApp.swift:<unknown>)
    at 114 dyld                                0x10bb02459        0x0 + 4491060313 
    at 115 ???                                 0x1114c7365        0x0 + 4585190245 
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.runtime.BroadcastFrameClock@1a38c420, StandaloneCoroutine{Cancelling}@18705218, FlushCoroutineDispatcher@1a8002f0]
        at 0   Surveys                             0x1083fb429        kfun:kotlin.Throwable#<init>(kotlin.String?){} + 105 
        at 1   Surveys                             0x1083f59b5        kfun:kotlin.Exception#<init>(kotlin.String?){} + 101 
        at 2   Surveys                             0x1083f5b75        kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 101 
        at 3   Surveys                             0x108686654        kfun:kotlinx.coroutines.internal.DiagnosticCoroutineContextException#<init>(kotlin.coroutines.CoroutineContext){} + 180 
        at 4   Surveys                             0x10865593e        kfun:kotlinx.coroutines.internal#handleUncaughtCoroutineException(kotlin.coroutines.CoroutineContext;kotlin.Throwable){} + 942 
        at 5   Surveys                             0x1085ef3b3        kfun:kotlinx.coroutines#handleCoroutineException(kotlin.coroutines.CoroutineContext;kotlin.Throwable){} + 723 
        at 6   Surveys                             0x1085e1924        kfun:kotlinx.coroutines.StandaloneCoroutine.handleJobException#internal + 180 
        at 7   Surveys                             0x10868d9db        kfun:kotlinx.coroutines.JobSupport#handleJobException(kotlin.Throwable){}kotlin.Boolean-trampoline + 43 
        at 8   Surveys                             0x1085fa816        kfun:kotlinx.coroutines.JobSupport.finalizeFinishingState#internal + 1382 
        at 9   Surveys                             0x1086047c7        kfun:kotlinx.coroutines.JobSupport.tryMakeCompletingSlowPath#internal + 2487 
        at 10  Surveys                             0x108603dc9        kfun:kotlinx.coroutines.JobSupport.tryMakeCompleting#internal + 697 
        at 11  Surveys                             0x1086038ed        kfun:kotlinx.coroutines.JobSupport#makeCompletingOnce(kotlin.Any?){}kotlin.Any? + 509 
        at 12  Surveys                             0x1085df127        kfun:kotlinx.coroutines.AbstractCoroutine#resumeWith(kotlin.Result<1:0>){} + 295 
        at 13  Surveys                             0x10853f6b9        kfun:kotlin.coroutines.Continuation#resumeWith(kotlin.Result<1:0>){}-trampoline + 73 
        at 14  Surveys                             0x108400f6e        kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 1486 
        at 15  Surveys                             0x10853f6b9        kfun:kotlin.coroutines.Continuation#resumeWith(kotlin.Result<1:0>){}-trampoline + 73 
        at 16  Surveys                             0x10867e946        kfun:kotlinx.coroutines.UndispatchedCoroutine#afterResume(kotlin.Any?){} + 294 
        at 17  Surveys                             0x10868a2ab        kfun:kotlinx.coroutines.AbstractCoroutine#afterResume(kotlin.Any?){}-trampoline + 43 
        at 18  Surveys                             0x1085df187        kfun:kotlinx.coroutines.AbstractCoroutine#resumeWith(kotlin.Result<1:0>){} + 391 
        at 19  Surveys                             0x10853f6b9        kfun:kotlin.coroutines.Continuation#resumeWith(kotlin.Result<1:0>){}-trampoline + 73 
        at 20  Surveys                             0x108400f6e        kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 1486 
        at 21  Surveys                             0x10853f6b9        kfun:kotlin.coroutines.Continuation#resumeWith(kotlin.Result<1:0>){}-trampoline + 73 
        at 22  Surveys                             0x108661e56        kfun:kotlinx.coroutines.internal.ScopeCoroutine#afterResume(kotlin.Any?){} + 294 
        at 23  Surveys                             0x10868a2ab        kfun:kotlinx.coroutines.AbstractCoroutine#afterResume(kotlin.Any?){}-trampoline + 43 
        at 24  Surveys                             0x1085df187        kfun:kotlinx.coroutines.AbstractCoroutine#resumeWith(kotlin.Result<1:0>){} + 391 
        at 25  Surveys                             0x10853f6b9        kfun:kotlin.coroutines.Continuation#resumeWith(kotlin.Result<1:0>){}-trampoline + 73 
        at 26  Surveys                             0x108400f6e        kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 1486 
        at 27  Surveys                             0x10853f6b9        kfun:kotlin.coroutines.Continuation#resumeWith(kotlin.Result<1:0>){}-trampoline + 73 
        at 28  Surveys                             0x10865a0b2        kfun:kotlinx.coroutines.DispatchedTask#run(){} + 2514 
        at 29  Surveys                             0x10868c6d0        kfun:kotlinx.coroutines.Runnable#run(){}-trampoline + 64 
        at 30  Surveys                             0x108b5753c        kfun:androidx.compose.ui.platform.FlushCoroutineDispatcher.dispatch$lambda$1$lambda$0#internal + 652 
        at 31  Surveys                             0x108b59046        kfun:androidx.compose.ui.platform.FlushCoroutineDispatcher.$dispatch$lambda$1$lambda$0$FUNCTION_REFERENCE$4.invoke#internal + 70 
        at 32  Surveys                             0x108b5912f        kfun:androidx.compose.ui.platform.FlushCoroutineDispatcher.$dispatch$lambda$1$lambda$0$FUNCTION_REFERENCE$4.$<bridge-UNN>invoke(){}#internal + 63 
        at 33  Surveys                             0x10853cb58        kfun:kotlin.Function0#invoke(){}1:0-trampoline + 72 
        at 34  Surveys                             0x108b56c1d        kfun:androidx.compose.ui.platform.FlushCoroutineDispatcher.performRun#internal + 477 
        at 35  Surveys                             0x108b5771b        kfun:androidx.compose.ui.platform.FlushCoroutineDispatcher.dispatch$lambda$1#internal + 299 
        at 36  Surveys                             0x108b58aca        kfun:androidx.compose.ui.platform.FlushCoroutineDispatcher.$dispatch$lambda$1$FUNCTION_REFERENCE$0.invoke#internal + 138 
        at 37  Surveys                             0x10853fb98        kfun:kotlin.Function2#invoke(1:0;1:1){}1:2-trampoline + 88 
        at 38  Surveys                             0x10840479e        kfun:kotlin.coroutines.intrinsics.object-4.invokeSuspend#internal + 862 
        at 39  Surveys                             0x10853f613        kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#invokeSuspend(kotlin.Result<kotlin.Any?>){}kotlin.Any?-trampoline + 51 
        at 40  Surveys                             0x108400cdd        kfun:kotlin.coroutines.native.internal.BaseContinuationImpl#resumeWith(kotlin.Result<kotlin.Any?>){} + 829 
        at 41  Surveys                             0x10853f6b9        kfun:kotlin.coroutines.Continuation#resumeWith(kotlin.Result<1:0>){}-trampoline + 73 
        at 42  Surveys                             0x10865a1a7        kfun:kotlinx.coroutines.DispatchedTask#run(){} + 2759 
        at 43  Surveys                             0x10868c6d0        kfun:kotlinx.coroutines.Runnable#run(){}-trampoline + 64 
        at 44  Surveys                             0x108688c0b        kfun:kotlinx.coroutines.DarwinMainDispatcher.dispatch$lambda$0#internal + 59 
        at 45  Surveys                             0x108688eff        kfun:kotlinx.coroutines.DarwinMainDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$1.invoke#internal + 63 
        at 46  Surveys                             0x108688fbf        kfun:kotlinx.coroutines.DarwinMainDispatcher.$dispatch$lambda$0$FUNCTION_REFERENCE$1.$<bridge-UNN>invoke(){}#internal + 63 
        at 47  Surveys                             0x10853cb58        kfun:kotlin.Function0#invoke(){}1:0-trampoline + 72 
        at 48  Surveys                             0x10868a048        _6f72672e6a6574627261696e732e6b6f746c696e783a6b6f746c696e782d636f726f7574696e65732d636f72652f6f70742f6275696c644167656e742f776f726b2f343465633665383530643563363366302f6b6f746c696e782d636f726f7574696e65732d636f72652f6e617469766544617277696e2f7372632f44697370617463686572732e6b74_knbridge13 + 184 
        at 49  libdispatch.dylib                   0x7ff80017224b     _dispatch_call_block_and_release + 11 
        at 50  libdispatch.dylib                   0x7ff8001735ce     _dispatch_client_callout + 7 
        at 51  libdispatch.dylib                   0x7ff8001823d4     _dispatch_main_queue_drain + 1416 
        at 52  libdispatch.dylib                   0x7ff800181e3d     _dispatch_main_queue_callback_4CF + 30 
        at 53  CoreFoundation                      0x7ff800420818     __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8 
        at 54  CoreFoundation                      0x7ff80041b16a     __CFRunLoopRun + 2455 
        at 55  CoreFoundation                      0x7ff80041a3e2     CFRunLoopRunSpecific + 541 
        ... and 10 more common stack frames skipped

Also in the build files I found this error:

image