When you create a new p12 cert, you need to recreate your provisioning file to include the new certificate.
thank you very much!
I've done that number of times it still doesn't work
I think this is what I did to fix it-Go to developer.apple.com, sign in, click on all provisioning profiles, then click on the profile that you are working on-it takes you to a different screen- click edit to choose the correct certificate and devices;
remember that you use the development profiles for testing on your phone and different distribution profiles for uploading to apple store;
Make sure that for each purpose you select the same type- for example- make sure the development certificate is used with the development profile and the distribution certificate is used with the distribution profile;
I hope I remembered that correctly