6
votes

I'm trying to make a ad-hoc beta distribution of my app, but get this error whenever I try and import it into iTunes:

'A provisioning profile named "embedded.mobileprovision" already exists on this computer. Do you want to replace it?'

If I click Replace, the profile named embedded.mobileprovision appears in the iTunes profiles folder, but the app doesn't appear in iTunes.

The app builds with no errors, and I have already imported my ad-hoc distribution provisioning profile into iTunes.

Has anyone else had this problem, or know how to solve it? I'm using iTunes 9.2, Xcode 3.2.3 and iPhone SDK 4.0

Thanks.

2
After you dropping the provisioning file, and app, did you sync your device to iTunes? Does the app install?iwasrobbed
Yes I did sync my iPhone, but the app does not install.Tom W
I can install it using the Xcode Organiser, but I need to be able to send the Beta to other people who wont have Xcode, and so this doesn't solve my problem.Tom W

2 Answers

6
votes

I had this problem as well, and got around it by selecting "Application Requires iPhone Environment" in the info.plist. (also known as "LSRequiresIPhoneOS" for raw key value)

3
votes

I have solved this problem.

Even though, as I explained in one of my comments, I was not able to select "Application Requires iPhone Environment" when editing Info.plist, if I make a new project in Xcode this option does appear.

After finding this I copied the Info.plist file from the new project into the project I'm currently working on. I then deleted the original one, and renamed the new one as appropriate.

After updating some of the other settings to match my project (e.g. the Bundle identifier), and building the project, I could then import the app into iTunes.