Reputation: 7154
When I tried to run my project on my iPhone I suddenly got this error message: "The file couldn't be opened because there is no such file.". The code worked just fine some minutes before with the simulator.
I've tried tried to clean the build, restart xcode, even the computer, but it won't go away. What could this message mean? And how do I solve it?
Upvotes: 7
Views: 3778
Reputation: 1
After encountering the same issue, which couldn't be solved by renaming the app, I created a new project in Xcode and imported all files from the original project. The issue disappeared and the application worked.
Upvotes: 0
Reputation: 7154
I found a solution! Not an elegant one, but it works. I simply renamed the app (clicked on the project name in the project navigator panel, and changed the name), and the app came back to life!
Upvotes: 1