I have also this problem with Instruments tool in Xcode 12.4, Xcode 13.1 and Xcode 13.2.4
The device shows properly in the devices and simulators panel, and I'm able to run/debug the product.
But when I try to run a leaks analysis the template selection panel says "No device" and the Instrument document gives an "unknown" device selection
I tried to clean Developer folder cache, changing how I connect to the device (wirelessly, cable with internet sharing enabled or disabled), but nothing worked.
Post
Replies
Boosts
Views
Activity
I have made a fresh setup of macOS Big Sur, then upgraded to Monterey (12.3.1).
Still experiencing the same issue with Xcode 13.3.1 and Instruments 13.3.1 (13E500a).
As you can see in this picture the device is properly connected.
If I open Console.app and filter process with instruments, with the device identifier, I can find two messages with
AMDeviceStartSession (thread 0x16f7cf000): Could not start session with device b8e8692a880f964e92702f1da4066121c9e3252e: kAMDNotConnectedError
After hours of investigations, those steps worked for me on this configuration :
MacBook Pro (13-inch, M1, 2020) with macOS Monterey 12.3.1
Apple TV 4K (2nd generation) with tvOS 15.6 (19M65)
Xcode 13.4.1
Be sure Xcode and Instruments aren’t running
Delete all ~/Library/Preferences/com.apple.dt.*.plist files
On aTV in Settings > App Remote & Devices you forget the macOS development machine
On development machine run /System/Library/CoreServices/Paired Devices.app and unpair the aTV
Open macOS Network Preferences
If you don’t have a WiFi service available, skip to step 12
Select the WiFi service
Remove it with the minus button
Click Apply (this is important)
Add the WiFi service you previously removed with the plus (+) button at the bottom left of services list
Click Apply (this is important)
If you don’t have a LAN Ethernet service available, skip to step 18
Select the LAN Ethernet service
Remove it with the minus button
Click Apply (this is important)
Add the LAN Ethernet service you previously removed with the plus (+) button at the bottom left of services list
Click Apply (this is important)
Be sure both aTV and development machine are on the same Ethernet or WiFi network
On development machine run /System/Library/CoreServices/Paired Devices.app and pair the aTV
If Paired Devices.app display any error, repeat all from step 3
Launch Xcode then open the Devices and Simulators window, you should see the paired aTV
Open a tvOS project then Profile