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

前端 未结 8 1429
佛祖请我去吃肉
佛祖请我去吃肉 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:40

    look up here XCode Build – CopyPNGFile Error and No Such File or Directory . I had same problem and this solution helps me.

    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!

提交回复
热议问题