home-assistant/Iconic

The compiler is unable to check that this switch is exhaustive in reasonable time

zhanleewo opened this issue · 3 comments

Hi! I download this library code from cocoapods and got an issue trying to build app "The compiler is unable to check that this switch is exhaustive in reasonable time"

Probably need to add default value.

image

image

You’re right. Both of those var need a default: return “”. This may never be hit, but it will trick the compiler at least.

Should be super easy to add, in the following lines:
https://github.com/home-assistant/Iconic/blob/master/Source/iconic-default.stencil#L224

https://github.com/home-assistant/Iconic/blob/master/Source/iconic-default.stencil#L233

Want to give it shot @zhanleewo?

Yes, I have done this. Since I think you will solve it in the future, so I did not provide a patch.

Hi, this is still open... can we make it happen?
I see no risk in using a default in any of the auto generated code because we can trust it is exhaustive as it is automatically done.