I had this issue after I upgraded to a MacBook Air M2 and Ventura, and was rebuilding an app that had only ever been built on/for Intel. The problem was in the Xcode "Product > Destination >" menu, which was set to "My Mac (Rosetta)". Changing that to "My Mac" eliminated the problem of asking to install Rosetta when I launched it from within Xcode. Xcode version is 14.1.