Has anyone faced this issue before? The problem oc...
# multiplatform
m
Has anyone faced this issue before? The problem occours when loading any string from
getString()
or
stringResource
. I am normally using strings in a strings.xml file. The error only happens on iOS system.
Copy code
kotlin.IllegalArgumentException: The padding option is set to PRESENT, but the input is not properly padded
at 0   Estudia.debug.dylib                 0x10a99d1f6        kfun:kotlin.io.encoding.Base64#decode$default(kotlin.CharSequence;kotlin.Int;kotlin.Int;kotlin.Int){}kotlin.ByteArray + 3686 
    at 1   Estudia.debug.dylib                 0x10b99d898        kfun:org.jetbrains.compose.resources.getStringItem$2.$invokeCOROUTINE$0.invokeSuspend#internal + 5336
I solved by removing the xml header:
Copy code
<?xml version="1.0" encoding="utf-8"?>
Anyway, pretty sure it's IDE bug.
s
This is the only reference I've found so far to this "*The padding option is set to PRESENT, but the input is not properly padded*" issue, yet I am also encountering it now. Even after removing the xml version part which you mention. Do you recall anything else around this issue? I have so far not been able to find a way around it
I think in our case it was an issue with the resource files not being in the right path at all. So
stringResource
was trying to find them inside the framework but they were not there. The issue was related to some path-altering shenanigans in our custom iOS build pipeline and likely had nothing to do with CMP itself