Xcode: issue “file xxx.png is missing from working copy” at project building

后端 未结 24 2107
猫巷女王i
猫巷女王i 2020-12-04 08:22

After deleting/adding some png files to project, i have got messages when building project.

\"file ProjectPath\\aaa\\xxx.png is missing from working copy.\"

24条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 08:27

    I had a similar issue with a handful of files that had long since been deleted from my Xcode project while I was still using Xcode 7.

    My solution was to:

    1. Create files with the names Xcode was complaining about (they don't need any content)
    2. Add the files to my Xcode project (in Xcode right click on my main project directory, click Add files to my_project_name and select the files that were just created
    3. Select the newly added files and delete them - select move to trash.

    This got rid of the warnings for me.

提交回复
热议问题