Any Idea how can I handle these two errors ?
You can create a provisioning profile in App Store Connect
is there any workaround to fix this error if I can’t create ?
I just want to run the app on my device connected to the mac.
Do we assume that you have a paid Developer account?
That is the solution, sometimes Xcode struggles and you can manually create the provisioning profile in App Store Connect, and then Xcode can get it together and recognize it and you can click “try again”