When I try to debug a metal shader on a device (iPhone 13 Pro), I get the following error: '
"Unable to create shader debug session
Could not find any thread execution data for the dispatch call
You may select a different thread position to debug and try again"
The metal library is compiled with debug symbols/source code. If I go to the performance view it does give me per-line performance statistics like usual. Frame capture, statistics, etc. all work as expected.
When I run the same code on the iOS simulator it can be debugged without issues. This only happens on device, and on multiple devices / iOS versions. Debugging also works on these devices in other projects.
I also can't find any kind of logging anywhere that could give me a hint as to why it failed to collect execution data.