I have a Mac app and when I want to profile it for leaks, I get an error "Unable to acquire required task port" from Instruments. I can't really find anyone else with this issue on the web, but it must be something to do with my application because I see the same thing on both Xcode 9.3 on High Sierra, and Xcode 10 on the first Mojave developer preview, each on separate Macs.
Any suggestions? 🙂
Aha! It's definitely some kind of signing issue. We are signing with a Developer ID, because the app is distributed outside the MAS, but if I disable signing, I'm able to run the Leaks profile.
Unfortunately, this is all complicated by us doing our signing in a Build Phases script (so fresh github checkouts by people other than me, can build immediately). Hopefully I can find an environment variable that will let me skip signing if the build is for Instruments!
Thanks very much for your replies 🙂