ERROR “swiftc failed with exit code 1” when converting to latest syntax

前端 未结 26 2025
傲寒
傲寒 2020-12-14 05:31

I was trying to convert syntax of old Swift project to new one as per few suggestion on Stack Overflow I tried converting it through Edit > Convert > To latest Synta

相关标签:
26条回答
  • 2020-12-14 06:26

    In my case it was a compiler flag change that didn't work well. It took a few compiles before it actually started failing though! Xcode caches what it compiles.

    0 讨论(0)
  • 2020-12-14 06:26

    Another thing to check:

    In my case I had deleted a row in the "Other Swift Flags" section in the Build Settings screen under the Release setting.

    That row had been a value for a compiler flag key/value pair. So the key was there but not the value.

    Once I deleted the key as well, then the build worked again.

    0 讨论(0)
提交回复
热议问题