Most likely you did the right thing and that the application ID is correct.
The solution is: Exit Xcode to be sure. Delete all existing provisioning profiles on your mac, you can find them in: / YourHomeDirectory / Library / MobileDevice / Provisioning Profiles / So you have a clean sheet to get started.
In the Member Center, delete the associated profiles in the Distribution section of your iOS certificate (the profiles that you used to archive your application). Then recreate them one by one, and when creating, be sure to select the correct distribution and the correct application identifier. After that, download these new profiles to your Mac. Then double-click these profiles so that Xcode automatically adds them to the folder: / YourHomeDirectory / Library / MobileDevice / Provisioning Profiles / You can verify that the profiles are added there (but the file names are changed to a hashed character type).
Launch Xcode and try Archiving your application again, if you followed the steps correctly, you will now need to distribute the distribution. Good luck
source share