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

后端 未结 24 1854
猫巷女王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:31

    The warning will disappear as soon as you commit your changes (Xcode 8).

    0 讨论(0)
  • 2020-12-04 08:31

    Show on target->build phases -> copy Bundle Resources. and clean build folder command+shift+alt+k

    0 讨论(0)
  • 2020-12-04 08:32

    I had the warnings, and also could not commit changes under XCode (using svn). All I had to do was restart XCode and the problem went away.

    0 讨论(0)
  • 2020-12-04 08:34

    In my case, I had wrong data from my old projects in the simulator. Solved by reset content and settings in the simulator:

    Simulator -> Reset content and settings...

    0 讨论(0)
  • 2020-12-04 08:35

    Disable Source Control, clean build folder (Alt+Shift+Cmd+K), then Enable Source Control again.

    Xcode -> Preferences -> Source Control -> Enable Source Control

    0 讨论(0)
  • 2020-12-04 08:35

    These warnings are not build warnings, they are about your SVN repository.

    It is correct that the directories shown no longer exist, CocoaPods stores the headers in Pods/Headers/{Private,Public} now. You have to update your working copy to reflect those changes.

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