0

I've been experiencing issues with stale files in my Objective-C iOS projects, even though I am running the latest version of Flutter. I'm not exactly sure when this problem began, but I first noticed it while working on one of my projects. I've tried numerous methods to eliminate these stale files, but nothing seems to work. I was mostly following this Stack Overflow post.

To further investigate the issue, I created a new project from scratch, only to discover the same problem with stale files persisting. I suspected that maybe an Xcode update had occurred without my knowledge, so I checked my Xcode version and found it to be 14.3.

In an attempt to resolve the issue, I installed Xcode version 14.2 and changed the Flutter path to use 14.2 instead. However, the stale files issue remained. I even tried creating another new project, thinking it might be different since the previous one was installed on Xcode 14.3, but I still encountered stale files.

I also observed that these stale files seem to be introduced into the project when I execute a flutter run in Visual Studio Code and then switch to Xcode to run the project. A temporary workaround I found is to remove the stale files in Xcode by using the command Cmd-Shift-K followed by Cmd-Shift-B. However, this solution is short-lived, as the issue reappears when I return to Visual Studio Code and perform another flutter run. If anyone has insights into why this is happening or a more permanent solution, it would be of great help!

Stale Error in Xcode

Flutter Doctor pic

Kyle Lynch
  • 121
  • 6

0 Answers0