简体   繁体   English

将iPhone应用程序的ad-hoc分发导入iTunes时出错

[英]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: 我正在尝试对我的应用进行临时测试分发,但每当我尝试将其导入iTunes时都会收到此错误:

'A provisioning profile named "embedded.mobileprovision" already exists on this computer. '此计算机上已存在名为“embedded.mobileprovision”的配置文件。 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. 如果单击“替换”,名为embedded.mobileprovision的配置文件将显示在iTunes配置文件文件夹中,但该应用程序不会显示在iTunes中。

The app builds with no errors, and I have already imported my ad-hoc distribution provisioning profile into iTunes. 该应用程序构建没有错误,我已经将我的ad-hoc分发配置文件导入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 我正在使用iTunes 9.2,Xcode 3.2.3和iPhone SDK 4.0

Thanks. 谢谢。

I had this problem as well, and got around it by selecting "Application Requires iPhone Environment" in the info.plist. 我也遇到了这个问题,并通过在info.plist中选择“Application Requires iPhone Environment”来解决这个问题。 (also known as "LSRequiresIPhoneOS" for raw key value) (原始键值也称为“LSRequiresIPhoneOS”)

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. 即使如我在其中一条评论中所解释的那样,在编辑Info.plist时我无法选择“应用程序需要iPhone环境”,如果我在Xcode中创建一个新项目,则会出现此选项。

After finding this I copied the Info.plist file from the new project into the project I'm currently working on. 找到这个后,我将Info.plist文件从新项目复制到我正在进行的项目中。 I then deleted the original one, and renamed the new one as appropriate. 然后我删除了原始的,并根据需要重新命名了新的。

After updating some of the other settings to match my project (eg the Bundle identifier), and building the project, I could then import the app into iTunes. 在更新了一些其他设置以匹配我的项目(例如Bundle标识符)和构建项目之后,我可以将应用程序导入iTunes。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM