thii / FontAwesome.swift

Use FontAwesome in your Swift projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

achirkof opened this issue · comments

Hi! Got an issue trying to build app "The compiler is unable to check that this switch is exhaustive in reasonable time"

Screenshot 2019-07-09 at 16 09 30

Probably need to add default value.

It works several days ago. Looks like updating fonts might be a cause of issue.

Thanks for reporting this. Would you mind to open a PR to fix it?

Can you please provide us with some information? Like hardware specs, Xcode version, library version and version of the Cocoapods?

I've just tried my test app on my very old Macbook 2012 and I'm not getting this error during the build nor the archivation.

My laptop is:
MacBook Pro (Retina, 15-inch, Mid 2014)
Processor 2,5 GHz Intel Core i7
Memory 16 GB 1600 MHz DDR3
Xcode 11 beta 3 (11M362v)
FontAwesome.swift 1.8.1 (cocoapods)

I think it's specific for Xcode 11 error.

I compiled the code in Enum.swift and ran into no issues. Not sure if you fixed the issue in the weeks since the last comment, but it seems to me that everything runs fine with the switch statement.

Looks like it's an Xcode 11 issue.

-Ben

Model Name: MacBook Pro (2017)
Model Identifier: MacBookPro14,2
Processor Name: Intel Core i5
Xcode Version 10.2.1 (10E1001), Swift 5

I have the same issue with Xcode Version 11.0 beta 4. No problems with Xcode 10.3

Could you file a bug report to Apple?

I have the same issue with Xcode Version 11.0 beta 3.

Same issue with Xcode 11 beta 5 as well.

Created a pull request
#222

Could you file a bug report to Apple?

I don't think this is a bug. It looks like Xcode 11 is just being more restrictive on the enum switch to be able to compile faster.

Same issue with Xcode 11 beta 6 as well. I'm with @Tulleb , it seems they are getting more restrictive. However, as in this case switch is exhaustive... I'm not sure the compiler should complain about it.

I'm having the same problem. I'm using Xcode 11 beta 6.

This issue has been fixed with #222

The issue still persists. I understand that the switch is exhaustive, but cannot alter the compiler. Maybe in the final version it will compile. Who knows? I've unlocked the file and added a default case returning an empty string. If the final version still won't compile this, there are no other ways (if, else if would be a rude joke :D)