I can't share full code file or project, but here is case. I had setting file in that it calls API and in response callback I have DispatchQueue.main.async block to update UI. In response I am receving on serverLangValue . If you copy and check following code with any project, you will get Command SwiftCompile failed with exit code (since this small pics of code it show file name but in atual profject it's not pointing file) . After commenting case translate (text): It will work fine let serverLangValue = // Server return value let switchEnum = translate (serverLangValue) let text = en //(or any other language code) switch switchEnum { case ABC: break case QPR: break case translate (text): break //From Xcode 16 and 15 swift compiler are file to process this case whereas older was working fine default: break } }
Topic:
Programming Languages
SubTopic:
Swift