Xcode Code Along issue

Hi everyone! So i have recently decided to start watching apple code along tutorials. The one i've chosen is "SwfiftUI on the mac" and when i build the project, it fails and says:

Signing for "Garden App" requires a development team. Select a development team in the Signing & Capabilities editor.

I have specified the team (my account) and Signing Certificate, which is set to "Sign to run locally".

I tried to set Xcode settings to default, but it didn't help.

Just in-case anyone else is having this issue:

Assuming you have the GardenApp (Part1 Start) open in Xcode, on the left hand code Navigator, select the "GardenApp" file (which has most of the app code files as children) and you'll see on the right hand side, a file that looks like a bunch of project settings and configurations. You'll see two main headings on the left, "Project" and "Targets". Under targets is "Garden App", select that. Scroll down to "Signing" and you'll see "Development Team", select the your team (that you setup in "Xcode" -> "Preferences" -> "Accounts" -> "+".). After this you should be able to preview and build the Garden App.

Why this isn't specified somewhere more obviously in the documentation, I'll never know. Hopefully this description is good enough to resolve yours and other peoples difficulties.

Same problem and Mick's answer worked for me.

Xcode Code Along issue
 
 
Q