I just tried replicating the error and it worked this time. Since creating this post and trying again I added Terminal, Instruments, and Xcode to Settings > Privacy & Security > Developer Tools so maybe that fixed it.
Topic:
Developer Tools & Services
SubTopic:
Instruments
Tags: