升级到 iOS 5.1 和 xcode 4.3,现在应用程序不会安装
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9650763/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Upgraded to iOS 5.1 and xcode 4.3, now app won't install
提问by Gary Hillerson
I have a working app. I updated from xcode 4.2 to 4.3 yesterday. ANd i updated my phone from iOS 5.0 to 5.1.
我有一个可用的应用程序。我昨天从 xcode 4.2 更新到 4.3。并且我将手机从 iOS 5.0 更新到 5.1。
I build my app in Xcode 4.3, and while tethered, the app works just fine on my phone. I then delete the app from my phone, create an ad-hoc distributable in Xcode, drop the new app and distribution provisioning profile into iTunes, and then tell iTunes to SYnc.
我在 Xcode 4.3 中构建了我的应用程序,虽然受到限制,但该应用程序在我的手机上运行良好。然后我从我的手机中删除该应用程序,在 Xcode 中创建一个临时可分发文件,将新应用程序和分发配置文件放入 iTunes,然后告诉 iTunes 同步。
The app transfers to my phone, and i watch it "installing..." but then it pops up the very helpful message " failed to install." I tried created a new distribution profile, but no help.
该应用程序传输到我的手机,我看着它“正在安装...”,但随后它弹出了非常有用的消息“安装失败”。我尝试创建一个新的分发配置文件,但没有帮助。
采纳答案by Melvin
This is what worked for me in Xcode 4.3.1
这在 Xcode 4.3.1 中对我有用
- Go to XCode
- Open the project, click on the project file in the explorer
- Under targets, click on you project target
- Go to the "build settings" tab
- go to the "Code signing" section
- By code signing Identity -> release -> select the add hoc profile you created in the IOS provisioning portal ( provisions -> Distrubution )
- CMD - S ( save )
- Click on project -> archive and you can create your add-hoc
- 转到 XCode
- 打开项目,在资源管理器中点击项目文件
- 在目标下,单击您的项目目标
- 转到“构建设置”选项卡
- 转到“代码签名”部分
- 通过代码签名 Identity -> release -> 选择您在 IOS 配置门户中创建的 add hoc 配置文件(配置 -> 分发)
- CMD - S(保存)
- 单击项目 -> 存档,您可以创建您的临时
回答by Braeburn
I was having exactly the same problem when I came across this topic. Melvin's answer above was something I had already tried, and I was sure I had it correct. Then I read the comment from Gary saying: "At first this didn't work for me, when i only changed the Release setting. I changed all of the code signing identity settings from "Developer" to "Distribution" and then it worked."
当我遇到这个话题时,我遇到了完全相同的问题。上面梅尔文的回答是我已经尝试过的,我确信我的回答是正确的。然后我阅读了 Gary 的评论说:“起初这对我不起作用,当时我只更改了发布设置。我将所有代码签名身份设置从“开发人员”更改为“分发”,然后它起作用了。 ”
It turns out that Gary's fix worked for me too. But it isn't the solution, but it does point to the root problem. In my case, it worked because my "Ad Hoc Distribution" scheme was configured incorrectly. I suspect that is the case for Gary as well.
事实证明,加里的修复对我也有效。但这不是解决方案,但它确实指出了根本问题。就我而言,它有效是因为我的“Ad Hoc Distribution”方案配置不正确。我怀疑 Gary 也是如此。
Here's how I fixed it:
这是我修复它的方法:
- Select your Ad Hoc Distribution scheme (e.g., use the Scheme button to select it)
- Select "Edit scheme..."
- Select "Archive" in the left-most column
- Select the correct "Build Configuration" in the selection box (e.g., "Release" or "Ad Hoc" or whatever you named your Ad Hoc build configuration)
- 选择您的 Ad Hoc Distribution 方案(例如,使用 Scheme 按钮来选择它)
- 选择“编辑方案...”
- 在最左边的列中选择“存档”
- 在选择框中选择正确的“Build Configuration”(例如,“Release”或“Ad Hoc”或您命名为 Ad Hoc 构建配置的任何内容)
In my case, I had the Build Configuration set to App Store Release build configuration. So the archived Ad Hoc build was signed for the App Store. Naturally, when I would try to install it on an ad hoc test device it would not install.
就我而言,我将构建配置设置为 App Store Release 构建配置。因此存档的 Ad Hoc 版本已为 App Store 签名。当然,当我尝试将它安装在临时测试设备上时,它不会安装。
Melvin's answer is also essential to fixing this. You must be using the correct code sign identity for your ad hoc build configuration.
梅尔文的回答对于解决这个问题也很重要。您必须为临时构建配置使用正确的代码签名标识。