I want to debug a macOS project, but the Xcode shows 'no eligible devices connected to my Mac', I am working in my Mac, I can't find resolution ways in google, could help me? the Xcode version is Version 14.3 (14E222b), I upload a screenshot.
no eligible devices connected to my mac
You need to select "My Mac" from the list, not "Any Mac" which is for building distributables.
Can't you see that on the list? Is your macOS version compatible with your app deployment version the same or lower than your macOS version?
I never encounter this problem for ten years.
This tripped me up also, if you have the same issue I did, you need to enable destinations that support Rosetta to get it working.
Go to: Product -> Destination -> Destination Architecture -> Show Both
This "Show Both" solved my problem as well. Thank you!