Unable to attach to pid error

I have this error "Unable to attach to pid" when I run my iMessage sticker pack testing. But it runs OK in a simulator. How do I resolve this? Thank you 🙂

Replies

Unhook your device, plug it back in and usually that fixes it. You could also try going to Product (hold down Option Key) and choose Clean Build Folder. Restarting Xcode should work too.

Also, on the device you're running the build on, make sure you've pressed "Trust this Device" under General -> Device Management -> [Your App]. Then re-run your build via Xcode and your stickers should show up.

I can't find Device Management. I can only find Profiles. I think they changed it so that Profiles is seperate from Device Management.

I'm running into this problem and none of these solutions are working 😟

What helped me was restarting the iPhone, then unplug and plug again.