简体   繁体   English

为什么我的Mac恢复出厂设置后不能不再安装我的应用程序?

[英]why I can't no longer install my app after I factory reset my Mac?

I have apple developer account. 我有苹果开发者帐户。 before I factory reset my Mac, I can install my app through cable data directly from My Mac to my iPhone (not via .ipa). 在恢复Mac出厂设置之前,我可以通过电缆数据直接从Mac到iPhone(而不是通过.ipa)安装应用程序。

but after I factory reset my Mac, I can no longer install my app through cable data. 但是在我将Mac恢复出厂设置后,我将无法再通过电缆数据安装我的应用。 The app is actually installed to my iPhone, but after I press the Icon, the app will immadiatelly close. 该应用程序实际上已安装到我的iPhone上,但是在按下图标后,该应用程序将立即关闭。

what should I do ? 我该怎么办 ? I suspect it relates to provisioning profile, certificate etc....I don't really understand about these things. 我怀疑这与供应配置文件,证书等有关。。。我对这些东西不太了解。

because of that,I have to install my app to the iPhone by generating the ipa file which is time consuming. 因此,我必须通过生成费时的ipa文件将应用程序安装到iPhone。

您应该在Mac中重新生成开发人员证书并进行配置。这是签名工作流程: https ://help.apple.com/xcode/mac/current/#/dev60b6fbbc7

The app is probably not being signed correctly. 该应用程序可能未正确签名。 Most likely, the factory reset removed your private key for a build certificate. 恢复出厂设置很可能会删除您的构建证书专用密钥。 To make it work again, you would need to create a new certificate+key pair, which you can do directly from Xcode. 为了使其再次起作用,您需要创建一个新的证书+密钥对,您可以直接从Xcode中进行操作。

This link has more info: https://help.apple.com/xcode/mac/current/#/dev154b28f09 . 该链接具有更多信息: https : //help.apple.com/xcode/mac/current/#/dev154b28f09 Follow the "Create a signing certificate" steps. 请执行“创建签名证书”步骤。

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

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