如何将以前存档的应用程序从 xcode 管理器安装到我的 iPhone

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4679713/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:05:05  来源:igfitidea点击:

How to install previously-archived apps from xcode organizer to my iphone

iphonexcodeiosorganizer

提问by Ben Clayton

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.

Xcode 将我提交到应用程序商店的所有应用程序版本存档在“存档应用程序”部分。我假设使用这个我可以在我的设备上安装一个旧版本的应用程序,以便重现我的客户可能在该特定版本上遇到的任何问题。

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.

原始应用程序是使用我们的 App Store 分发证书签名的,我使用 Organizer 界面使用我们的开发人员配置文件对其重新签名。

  • 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.
  • 选择存档的应用程序
  • 选择我要测试的版本
  • 点击“分享”
  • 选择身份旁边的“iphone developer”
  • 保存到磁盘(保存 ipa 文件)
  • 然后使用您在选择连接的设备时看到的屏幕上“应用程序”旁边的小 + 按钮将 ipa 复制到设备。

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

编辑:感谢您的回答,我现在已经解决了。如果其他人想要这样做,我写了我使用的过程http://pervasivecode.blogspot.com/2011/01/installing-archived-application-to.html

采纳答案by Olaf

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.

使用 App Store 分发证书签名的应用程序无法通过将其放入 iTunes 来安装。您需要使用 Adhoc 证书签署的 IPA 才能执行此操作。

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.

Xcode 可以使用第二个证书重新签名存档,但我认为这种重新签名不会覆盖第一个证书。但后来,我从未尝试过。