Anyone can help me.Actually i'm 6 month kid for ios app development,this is my first app to submit in appstore.When i'm trying to generate the ad\_hoc distribution IPA,it shows error(as like the below screenshot).But for appstore IPA generated successfully,i'm so confused.....what a magic this!

[![enter image description here](https://i.stack.imgur.com/ynlKp.png)](https://i.stack.imgur.com/ynlKp.png)

I have tried the follwing things **To solve this problem**:

1.Deleted all my mac keychain certificates.  

2.Delete all xcode caches and and provisioning profiles and also deleted the developer account from xcode.

and restarted my mac...
then, 

1.Reinstalled the certifcates in keychain from exported **.P12** from another mac

2.login in xcode preferences accounts tab.... and refresh it. it downlods all provisioning profiles from my developer account. 

**Status:** Not working,still the same issue....all of another projects of my mac and appstore ipa too.

Even i have generated new developer certificate and updated all my project provisioning profiles.still have the same issue...,then try with it new bundle id and new provisioning profiles..i can't got it!

Bcoz of this problem i can't generete ipa for allof another app from my mac..for this issue i wasted entirely 2 working days.totally disturbed.....

Once i solve this then only i can sleep well.pls help me ,thanks in advance to you....