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

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

    I just had this issue. It's due to path references. Have you been moving files around and/or copying folders? Check if .xcodeproj is inside or outside of the main project folder. Also, make sure that the project's file and directory structure are intact.

    /yourFolderProjectName/ <-- contains your .xcodeproj file AND folder with Xcode project name

    /yourProjectFolder <-- here are .swift, info.plist, assets folder, etc.

    /yourProjectXcodeFile.xcodeproj

提交回复
热议问题