PocketByte / LocoLaser

Localization tool to import localized strings from external source to your project.
Apache License 2.0
31 stars 1 forks source link

IosStringRepository - build warning "This cast can never succeed" #25

Open hatched-grzegorz opened 2 months ago

hatched-grzegorz commented 2 months ago

This is minor and not a bug as far as I understand.

Seems the cast do succeed as everything works as expected.

Screenshot 2024-09-18 at 13 55 08

Build warning is being raised though and pollutes build output.

Maybe it would be possible to replace the cast with NSString.create(string = s1) or add a suppress in the generated class if we are sure it is a false warning.