Is there a way to enable "verbose" mode for logs f...
# compose-ios
f
Is there a way to enable "verbose" mode for logs for Compose? I'm facing some crashes and there is no log/stacktrace
To give more context, it happens only when I try to load any font using the Resources. And yes, all resources are in the module that produces the app/xcframework.
Something that I also noticed that it does not generate the Res class. I had to "create" it manually using this snippet:
Copy code
@OptIn(InternalResourceApi::class)
private fun getFont(name: String): FontResource = FontResource(
    "font:$name",
    setOf(
        org.jetbrains.compose.resources.ResourceItem(
            setOf(),
            "font/$name.ttf", -1, -1,
        ),
    ),
)
On Android & JVM compose it works fine, only crashes on iOS
The only log I got (and it was only one time) was a
didReceiveMemoryWarning
. I also noticed that when opening compose, the memory consumption goes from 39~40mb to 85~90mb.
m
@faogustavo probably you did, but just asking: does Xcode give you a crash? I remember my fonts crashed on ios too, but i forgot how i fixed it. Will try to find it
f
No logs, crash stack, nothing :/
It just stop responding
@Konstantin Tskhovrebov in the other thread you mentioned that
The compose resources can be included into an app only by the Compose gradle plugin
is the it some script that I need to add to my iOS app to grab the resources? Or a gradle task?
k
all should work automatically. could you file an issue on the github with a reproducer of the problem? (have you tried a new generated project by wizard? does it not work as well?)
f
New generated project it works fine 😕 But I'll try to create a repro