https://kotlinlang.org logo
Title
n

Ngenge Senior

05/10/2023, 2:53 PM
I have a json file in a compose multiplatform app in the resources folder and from my understanding, it is available to all the platforms. I am reading the json file using the code
val fileBytes = resources("file.json").readBytes()
The code works on desktop and Android but I am getting a
MissingResourceException
on iOS. Is this behavior expected or am I missing something?
r

Raphael TEYSSANDIER

05/10/2023, 3:00 PM
did you do
pod install
on
iosMain
?
n

Ngenge Senior

05/10/2023, 8:28 PM
No I did not
Do I need to?
I navigated to iosMain and got the error
no Podfile
found