如何将以前存档的应用程序从 xcode Organizer 安装到我的 iPhone
Xcode 在“存档的应用程序”部分中保留了我提交到应用程序商店的所有应用程序版本的存档。我假设使用这个我可以将旧版本的应用程序安装到我的设备上,以便重现我的客户在该特定版本中可能遇到的任何问题。
但是,当我尝试执行此操作时,出现错误:
“此可执行文件使用无效权利进行签名,您的应用程序代码签名权利中指定的权利与您的配置文件中指定的权利不匹配”
原始应用程序是使用我们的 App Store 进行签名的分发证书,我使用组织者界面使用我们的开发人员配置文件重新签名。
- 选择存档的应用程序
- 选择我要测试的版本
- 单击“共享”
- 选择“身份保存到磁盘”旁边的“iPhone 开发人员”
- (保存 ipa 文件)
- ,然后使用“应用程序”旁边看到的小 + 按钮将 ipa 复制到设备' 在选择连接的设备时出现的屏幕上。
然后我收到错误,并且该应用程序未安装。
我在这里做错了什么明显的事情吗?或者是否有不同的流程可以将存档的应用程序重新安装到我的设备上?
编辑:感谢您的回答,我现在已经解决了这个问题。如果其他人想要这样做,我写下了我使用的过程 http://pervasivecode.blogspot .com/2011/01/installing-archived-application-to.html
Xcode keeps an archive of all the versions of my apps that I've submitted to the app store in the 'archived applications' section. I assumed using this I could install an old version of an app to my device, in order to reproduce any problems my client may have had with that particular version.
However, when I try to do this I get an error:
'this executable was signed with invalid entitlements, the entitlements specified in your applications code signing entitlements do not match those specified in your provisioning profile'
The original app was signed using our App Store distribution certificate, and I use the Organizer interface to re-sign it using our Developer profile.
- select the archived app
- select the version I want to test
- click 'share'
- select 'iphone developer' next to identity
- save to disk (saves the ipa file)
- then copy the ipa to the device using the little + button you see next to 'applications' on the screen you get when you select the connected device.
Then I get the error, and the app isn't installed.
Is there something obvious I'm doing wrong here? Or is there a different process to re-install an archived app to my device?
Edit: Thanks for the answers, I've solved this now. I wrote up the process I used if others want to do this http://pervasivecode.blogspot.com/2011/01/installing-archived-application-to.html
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当应用程序使用 App Store 分发证书签名时,您无法通过将其放入 iTunes 来安装该应用程序。您需要使用 Adhoc 证书签名的 IPA 才能执行此操作。
Xcode 可以使用第二个证书重新签署存档,但我认为这种重新签署不会覆盖第一个证书。但后来,我从未尝试过。
You cannot install an app by dropping it into iTunes when it is signed with the App Store distribution certificate. You need an IPA signed with an Adhoc certificate to do that.
Xcode can resign an archive with the second certificate but I don't think this resigning will overwrite the first certificate. But then, I never tried.