xcodeproj: error: Signing for "MyProject" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'MyProject' from project 'MyProject (IOS)') LogPlayLevel: UAT: ** BUILD FAILED **

Trying to launch iPhone from my ue5 on Mac. Full error line:
LogPlayLevel: Error: UAT: /Users/admin/Documents/Unreal Projects/MyProject/Intermediate/ProjectFilesIOS/MyProject (IOS).xcodeproj: error: Signing for “MyProject” requires a development team. Select a development team in the Signing & Capabilities editor. (in target ‘MyProject’ from project ‘MyProject (IOS)’)
LogPlayLevel: UAT: ** BUILD FAILED **
LogPlayLevel: Error: UAT: ERROR: Failed to finalize the .app with Xcode. Check the log for more information
LogPlayLevel: UAT: Total time in Parallel executor: 3.31 seconds
LogPlayLevel: UAT: Total execution time: 5.55 seconds
LogPlayLevel: UAT: Took 5,67s to run dotnet, ExitCode=6
LogPlayLevel: UAT: UnrealBuildTool failed. See log for more details. (/Users/admin/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-MyProject-IOS-Development.txt)
LogPlayLevel: UAT: AutomationTool executed for 0h 0m 7s
LogPlayLevel: UAT: AutomationTool exiting with ExitCode=6 (6)
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 5.269428
LogPlayLevel: Error: UAT: RunUAT ERROR: AutomationTool was unable to run successfully. Exited with code: 6
PackagingResults: Error: Launch failed! Unknown Error

You might need to enter your developer credentials in Xcode. You can start by double clicking your IOS Xcode project in your project folder.

Top Left → XCode → Settings → Accounts and enter your developer information here.

After that’s done, you can click on the folder icon in Xcode → Click and open Games → Click your game name → And click the file that doesn’t say “Editor”. You’ll see a “Signing and Capabilities” tab in the center of the screen. Click that and make sure your information is there. It should auto populate.