Here is what worked for me.
Quit Xcode
Uncheck "open with Rosetta" for Xcode
Run Xcode again and run the project.
Grab the device identifier from build error ( This will be different from the error that appeared with Rosetta option checked and I think thats the main thing)
Add that identifier to devices. Edit provisioning profile and refresh that profile in Xcode
Run the code again and its working now.
Happy coding day :)