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

前端 未结 26 2378
傲寒
傲寒 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:07

    Just had the same issue. For me it was because I had renamed some of the project directories. I had a ton of red files in my project navigator. To solve, follow these steps:

    1. click on the directory in project navigator where many files show as red
    2. Under "Identity and Type" in the File Inspector (on the right side), click Containing directory
    3. Select the new directories
    4. Rebuild - command shift K, command B

提交回复
热议问题