xcode iOS - 无法打开文件“XXX-XXX...”,因为没有这样的文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14413842/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iOS - The file "XXX-XXX..." couldn't be opened because there is no such file
提问by javiazo
I am developing an iOS application and suddenly xcode shows this error. There isn't any error log in the console.
The app crash and when I use "Continue program execution" xcode button, the name of the file changes.
我正在开发一个 iOS 应用程序,突然 xcode 显示此错误。控制台中没有任何错误日志。应用程序崩溃,当我使用“继续程序执行”xcode 按钮时,文件名发生了变化。
Thanks!!
谢谢!!
回答by Roel Spruit
Have you tried cleaning your build via Product -> Clean?
您是否尝试过通过“产品”->“清洁”来清洁您的构建?
回答by user4951
I had a similar problem. My issue was that some outlet still points to nonexistent property. In the simulator it still shows the correct error (this class is not key value compliant for bla bla). On iPhone somehow the error message becomes this.
我有一个类似的问题。我的问题是某些出口仍然指向不存在的财产。在模拟器中,它仍然显示正确的错误(此类不符合 bla bla 的键值)。在 iPhone 上,错误消息以某种方式变成了这个。
回答by Pushpak Narasimhan
Confirm whether you have added the files to project target. Clean your project and build again.
确认您是否已将文件添加到项目目标。清理您的项目并重新构建。