What's the Xcode “no such file or directory error”?

前端 未结 8 1411
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-01 06:11

Xcode keeps prompting telling me I don\'t have a certain image in the project and it errors when I try to build. If I deleted the .png Xcode is complaining about from the pr

相关标签:
8条回答
  • 2020-12-01 06:43

    XCode Build – CopyPNGFile Error and No Such File or Directory

    If you receive either of these annoying errors when building your xcode app, something has corrupted in your project bundle.

    1. Open your project in Xcode
    2. Click on your project
    3. Click on your project under Targets
    4. Hit the build phases tab
    5. Open “Copy Bundle Resources” near the bottom
    6. Look for any resources listed in red!
    0 讨论(0)
  • 2020-12-01 06:47

    I had the same problem but my solution was a bit different:

    1. Open project in Xcode
    2. Open project navigator
    3. In the filter down below, search for your erroneous file name
    4. I found the file under a group called "Recovered References" and it was marked in red
    5. Delete the red files and everything should work perfectly
    0 讨论(0)
提交回复
热议问题