Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when importing ad-hoc distribution of iPhone app into iTunes

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.

like image 900
Tom W Avatar asked Jul 09 '10 10:07

Tom W


2 Answers

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)

like image 99
beno Avatar answered Sep 28 '22 18:09

beno


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.

like image 39
Tom W Avatar answered Sep 28 '22 19:09

Tom W