No eligible devices connected to 'My Mac
No eligible devices connected to 'My Mac
这个版本信息
Xcode version
Thanks for your post, on your screenshots you show the simulators not the devices. Also, your Xcode is one version old, you should update the Xcode version from the App Store.
Ok, this message usually means Xcode can’t find a connected physical device that matches the deployment target or provisioning profile settings of your project. If you planning to use the simulator as shown in your screenshot, select a Simulators, go to the device toolbar in Xcode → choose a simulator (e.g., iPhone 17 Pro). Build & run, the project will launch in the simulator instead of looking for a physical device. Or better yet, connect a Physical Device. Connect your iPhone/iPad via USB. Trust the Mac when prompted on the device. In Xcode, the device should appear under “Connected Devices” in the toolbar. Check Deployment Target & Provisioning Profile. Make sure the deployment target supports your device’s iOS version. In Signing & Capabilities, confirm a valid provisioning profile is selected. Hope this helps a little.
I would recommend to check this Tech Note: TN3158: Resolving Xcode 15 device connection issues | Apple Developer Documentation
Albert Pascual Worldwide Developer Relations.