I see the same problem since I started coding. I found out that if I write myself the names of the certificates that I installed, it works just as well. I was able to send adhoc distributions as well as to the store. it must be the same name.
source share