I ran the command "xcrun devicectl list devices" and it shows "connected (no DDI)". Also, tried the other suggested commands, please see the result below.
Command: xcrun devicectl list preferredDDI
Result:
Host CoreDevice version: 443.19
WARNING: No usable DDI found for the iOS platform (The DDI's CoreDevice content is too old.). Best (unusable) DDI found is:
• hostDDI: file:///Library/Developer/DeveloperDiskImages/iOS_DDI.dmg
Command: xcrun devicectl device info ddiServices --device
Result: ERROR: Failed to find a DDI that can be used to enable DDI services on the device. Usually this means the best DDI we could find for a platform did not have compatible CoreDevice content. Run 'devicectl list preferredDDI' from the command line to get more details on why no valid DDI can be found. (com.apple.dt.CoreDeviceError error 12001 (0x2EE1))