"Build failed" with developement team already signed

Hello everyone! I’m new to this forum and have never designed an app before. I’ve used Unity and Xcode. When I launch the build in Xcode, it always replies “Build Failed.” I’ll explain the problem and attach some screenshots.

The app I’m trying to launch comes from the Unity platform (version 2022.3.46f1) + Vuforia for augmented reality. Everything works well on this platform (I’ve already checked it); I export the project into a specially created folder after clicking on “Build”; I open the project in Xcode version 16.0 (I downloaded this application a few days ago); I connect my iPhone and my Apple ID by going to “Xcode” > “Settings” and linking my account; to connect my iPhone, I go to “Window” > “Devices and Simulators” and link everything; then I go to “Targets” > “Unity iPhone” and check in the “General” and “Signing and Capabilities” sections to ensure everything is correct; I then change the development team name to my account “MARCO ARICO” (previously activated on Apple Developer with an already paid annual subscription) and check that the “Bundle Identifier” is the same as the one I entered in Unity under “Player” > “Other Settings.” At this point, I send the Build, and after a few moments, it says “Build Failed” with this error: “/Users/albertodanielemanzo/Desktop/Unity/App_7/Unity-iPhone.xcodeproj Signing for 'Unity-iPhone' requires a development team. Select a development team in the Signing & Capabilities editor.” I would like to add that the Mac I’m using belongs to a friend who specifically lent it to me to launch this app, and all the steps I took are based on in-depth research from YouTube tutorials and official Unity and Xcode forums.

The computer I’m using is a MacBook Air with macOS Sonoma 14.6.1, which belongs to my friend who lent it to me. All subscriptions are under my name. My username is the same as the development team name (Development Team); the subscription I have with Apple is individual, as are my downloaded certificates for app development.

I have already addressed the issue with Apple Developer support, and they advised me to write on this forum.

"Build failed" with developement team already signed
 
 
Q