iPhone: Application Install Fails With “Invalid Signer” Error

旧时模样 提交于 2020-01-02 05:22:08

问题


The iPhone is attached to a Mac runnning the latest iTunes version and I am 100% sure that her UDID is in the provisioning file. Her iPhone has not been jailbroken and we even restored it to factory settings.

I am having trouble installing our development build on this one iPhone. The error is:

the application "[Application Name]" was not installed on the iPhone "iPhone" because the signer is not valid

I am 100% sure that the UDID is accurately entered in the provisioning file and that they correctly copied the right provision file/build combo. This same combo has been successfully installed on over a dozen iphones.

We have been able to install this on some devices with no problems.

Edit:

From comments to an answer:

We can install it on 100 iphone with our account. We have about 40 iphones in this provisioning profile and it works on 38 of them.


回答1:


I had a fix that seemed to work for one user who was having troubles:

  1. remove all offending profiles and apps
  2. restart
  3. add back provisioning profile FIRST
  4. sync device
  5. now add app resource
  6. sync again to get app on device

the offending machine was a windows box... dunno if that makes a difference.

If someone else gets this issue - try this and let us know if this is the actual fix or workaround! This goblin has rarely been seen and solved with the same steps.

this was my reference for the fix idea:

http://iphone.forums.wordpress.org/topic/installing-beta#post-1194




回答2:


Does the answer to this question help you at all?

Signer not valid error

Put the signing at the Target level, not the Project level

I'm personally not sure what that means but it worked in that case




回答3:


We can install it on 100 iphone with our account. We have about 40 iphones in this provisioning profile and it works on 38 of them. Any other ideas?

I'll tell Buzz that you say hi and if you can help us we'll get you a moon rock!




回答4:


(Ignore: I misread the question and didn't notice he had dozens of installs already so my advice does not apply)

If you have just the standard developers account, you can only install on up to five phones before the certificate becomes invalid for further installs. If you've already installed it on five phones that is most likely the problem.

Tell Buzz some random guy on the internet said, "Hi!"




回答5:


A couple of things to try:

  1. Renew the profile at the Developer's portal. It may have expired or become corrupt.
  2. Create a new provisioning profile



回答6:


Does the mobileprovision file show up on the device after sync? You should see it in

Settings->General->Profiles

If it doesn't then that would be the problem. Check once again that the UDID is correct - same UDID on iTunes and in the developer portal. Try syncing iTunes with the mobileprovision without trying to install the app. If it still doesn't get installed then CHECK THE UDID. If it is getting installed on all other devices, UDID is most likely the issue.




回答7:


If the distribution signing certificate was revoked in the meantime and recreated, you need to remove the old provisioning profile from the device first. This is on an iOS 3.1.3 device.




回答8:


This happened to me recently and I resolved it. Situation was that I had an ad hoc provisioning profile I was using successfully for around 40 devices with several different apps. When a new device was required I would add it to the profile, download, then use 'share' from XCode with the same archived app but the new profile.

Recently my distribution certificate expired, so I created a new one and recreated the provisioning profiles. Subsequently, I could still install on the existing devices but would get an error trying to install on new devices, even though I had added them to the profile and installed the profile on the device.

The secret was that although I had created the new distribution cert and added it to my KeyChain, there was still a copy of the old cert in the KeyChain, and that was being used to sign the app. It turns out that if you do not delete the old provisioning profiles from XCode, when you start up XCode it will recreate the old cert in the KeyChain, and that will be used to sign the app, which means that the new profile with the new device (created with the new cert) will not match.

Solution: when you renew your cert, delete all the old profiles signed with that cert, delete the old cert, then recreate, download and install the new profiles.

hth



来源:https://stackoverflow.com/questions/2345624/iphone-application-install-fails-with-invalid-signer-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!