Xcode 8 - Missing Files warnings

前端 未结 14 1634
独厮守ぢ
独厮守ぢ 2020-12-02 08:24

Ever since upgrading to Xcode 8 using Swift 2.3 I have several missing files warnings. They are all related to pods that I am using.

The files that are missing are

相关标签:
14条回答
  • 2020-12-02 08:40

    In my case Pods where checked into the repository generating a couple hundred warnings for "missing files". Fixed it by removing Pods from the repo :

    git filter-branch --index-filter 'git rm --cached --ignore-unmatch Pods/*' --tag-name-filter cat -- --all
    
    0 讨论(0)
  • 2020-12-02 08:42

    You can resolve the issue by checking "Add and Remove files automatically" option in X-Code->Preferences->Source Control

    Here is the screenshot of Preferences

    0 讨论(0)
  • 2020-12-02 08:43

    This fixed it for me:

    git reset HEAD <path-to-deleted-file-that-was-causing-the-Xcode-warning>
    
    0 讨论(0)
  • 2020-12-02 08:46

    I solve the problem simply by this:

    1. Add the culprit to the project

    2. Remove the reference

    This cleans the internal state of XCode and the message goes away.

    0 讨论(0)
  • 2020-12-02 08:46

    Xcode 8 seems to often miss git add the deleted/related files. To correct it, tap Commit... from Xcode's Source Control menu, make sure to check these files (which are followed by an exclamation mark !), then commit the changes. This should clear the warnings.

    0 讨论(0)
  • 2020-12-02 08:47

    If you dont use xcode source control but some other git client (like source tree or terminal), you can disable source control in Xcode and than warnings will disappear.

    Xcode > Preferences > Source control and uncheck "Enable source control"

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