Xcode 8 - Missing Files warnings

前端 未结 14 1631
独厮守ぢ
独厮守ぢ 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:34

    I had the same problem. In my case there was a .git directory in a parent directory of my project. By deleting that parent .git directory, the errors where gone.

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

    I have faced the same problem after adding custom CollectionView cell(CustomCollectionViewCell) in the project.Same error occurred as above. No need to delete the file instead we can.

    Rename Missing file for me it's "xCustomCollectionViewCell.xib" .

    Now the error is gone.

    Again rename the same file to original name "CustomCollectionViewCell.xib"

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

    This is just an Xcode bug. If you delete or rename a file without then doing a commit, Xcode sees the discrepancy between the previous git commit and the current state of things and reports these warnings. They go away as soon as you do a git add that includes the file deletion / rename.

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

    I tried all of these (and many others) but none of them worked. After hours of trying various fixes, I found that the following procedure worked.

    cd "project directory"
    git add .
    

    You will need to close XCode and reopen or future Commits may fail.

    Hope this helps someone.

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

    I have resolved this issue by following steps:

    1. Clear Derived Data

    2. Discard Missing files while commit and then do commit.

    3. Clean Build

    4. Resolved..

    Happy Coding.. :)

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

    How about commit in Source Control.

    You may firstly have to show Packet Contents of "your project name".xcodeproj and show Packet Contents of project.xcworkspace and then delete the xcuserdata folder.

    If you still cannot commit because of Couldn't communicate with a helper application problem then under your project directory try the following:

    xcrun git config user.name "Your Name"
    xcrun git config user.email YourEmailAddress
    

    *Remember to reopen the project to see the effect.

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