Getting errror "Missing runner.xcodeproj" building flutter app

I don't think this has anything directly to do with XCode, but maybe someone here can point me in the right direction. I did an archive of a flutter project a few weeks ago to submit to the app store. Worked fine, app was approved. I updated some packages, added a new feature, and tested with Android. Works fine. Now I'm trying to get it to run with an iOS simulator vis VSCode, and I'm getting the error:

Expected ios/Runner.xcodeproj but this file is missing.

That's true, there is no "runner.xcodeproj", but there's a "MyAppName.xcodeproj" and that's the xcode project name I used when I did the archive. The workspace name is "Runner.xworkspace", so I'm thinking that I must have done something in the workspace to make it reference "MyAppName" instead of "Runner" (or maybe the other way around??), but I have no idea what I might have done.

Anyone have any ideas?

I was able to get around this problem by renaming MyAppName.xcodeproj to Runner.xcodeproj, and making some further adjustments to the targets which also had some references to MyAppName.

Getting errror "Missing runner.xcodeproj" building flutter app
 
 
Q