Has anyone run into this exception, on iOS only (A...
# compose-ios
e
Has anyone run into this exception, on iOS only (Android works fine)? App crashes when trying to use stringResource to access a localized string, strings are in a separate module. The issue seems to be only with some keys, but the keys/translations itself seem completely normal.
Copy code
org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: /private/var/containers/Bundle/Application/{app-name}/compose-resources/composeResources/{app-name}.core.localization.generated.resources/values/strings.commonMain.cvr
I am completely lost 😄
Copy code
Uncaught Kotlin exception: kotlin.IllegalArgumentException: Invalid symbol '_'(137) at index 6

// This crashes
Button(
    text = stringResource(Res.string.period_sheet_extend_period),

// This works fine
Button(
    text = stringResource(Res.string.home_banner_start_tracking_title),

Keys:
    <string name="period_sheet_extend_period">Extend period</string>
    <string name="home_banner_start_tracking_title">Start tracking your cycle</string>
Adding new keys introduces completely new errors
Copy code
kotlin.IllegalArgumentException: Input should have at least 2 symbols for Base64 decoding, startIndex: 0, endIndex: 1

<string name="home_banner_start_tracking_idk">Idk</string>
f
Look for invisible chars into your file, maybe it’s the cause
nono 1
e
So this is a strange one, I was missing this plugin
org.jetbrains.compose
in my main module. The error messages could have been better though 😄