I have created an iOS application, and wanted to submit it to the App Store. I saw a tutorial on how to do that, and understood that I need to create a Distribution profile and replace it with the Development profile. So I did that but before sending it to the App Store. I want to check it last with that profile on it (the distribution profile). Can I run Xcode project when I add a distribution profile? because when I tried running it on a real device, an error popped up: "the provisioning profile "XXXXX" was not found". So i went to the Devices tab and tried adding the file of the provisioning profile, and it didn't allow me to.
What should I do?