iOS xCode6(应用程序签名无效) [英] iOS xCode6 (Application signature not valid)

查看:116
本文介绍了iOS xCode6(应用程序签名无效)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不是我第一次发生这种情况。上次我纯粹是无意中解决了此问题,但这是无法前进的。现在,我已经整整失去了2天的时间,而且我已经没有头发了。
这就是问题所在。我必须重新签名企业分布式应用程序才能发布最新更新。
我在终端中使用 codesign 函数执行此操作。一切似乎都在正确构建。途中未发现任何问题。将新应用程序下载到我的设备时,它失败,并且在xCode设备日志中告诉我(应用程序签名无效)

This isn't the first time this has happened to me. Last time I resolved it purely by accident but that's no way to move forward. I've now lost 2 whole days on this and I have no hair left. So here's the problem. I have to re-sign an Enterprise Distributed app in order to release the latest update. I do this in terminal using the codesign function. All appears to be building correctly. No issues seen on the way through. When it comes to downloading the new app to my device, it fails and in the xCode device logs it tells me (Application signature not valid).

因此,我现在心情很好,因为我意识到自己回到了那个地方,所以我最好在本周余下的时间注销。

So i'm in a great mood at this point as I realise that i'm back in that place and that i may as well write off the rest of the week.

所以这是我到目前为止所采取的补救措施。

So here's what i've done so far to remedy this.


  • 删除了我所有的相关密钥并钥匙串访问中的证书

  • 从我的设备中删除了保存的配置文件

  • 撤销并销毁了xCode和apple dev门户中的所有证书。

  • 从xcode刷新以接收新的开发人员和发行版的

    证书。

  • 创建新的证书请求文件

  • 以新名称创建新的应用程序ID

  • 使用新的签名请求添加推送服务

  • 创建新的配置文件

  • 使用在终端上签名的新信息和代码重新创建所有.plist文件。

  • 重新创建了所有带有新信息和代码的.plist文件。

  • Removed all my related keys and certificates in keychain access
  • Removed saved provisioning profiles from my device
  • Revoked and destroyed all certificates in xCode and on the apple dev portal.
  • Refreshed from xcode to receive new developer and distribution
    certificates.
  • Created new certificate request files
  • Created a new app id under a new name
  • Added push services using the new signing request
  • Created a new provisioning profile with the new name and using all the new valid certificates created earlier.
  • Recreated all .plist files with the new information and code signed in terminal.

没有变化。

私有密钥和公钥都在那里。我已经完成了所有演练和解答中提到的所有内容。我已经经历了很多次这个过程,以至于我对此非常擅长。.但是它根本不适合我。

Private and public keys are all there. I've done everything mentioned in every walkthrough and answer i can find. I've been over this process so many times that i'm getting very good at it.. but it simply isn't working for me.

我唯一的一件事可以猜测,问题是我的钥匙串证书没有描述旁边的代码。可能什么都不是,但是我现在能想到的就是这一切。它会显示 iPhone分配:< name> 而不是 iPhone分配:< name> (< teamcode>)

The only thing i can guess as the problem is that my Certficate in keychain doesn't have a code next to the description. It might be nothing but it's all i can think of at the moment. it says iPhone Distribution: <name> instead of iPhone Distribution: <name> (<teamcode>). Doesn't seem to matter how I create the keys this doesn't seem to remedy this.

如果是这种情况,如果有人可以指出我的详细信息,

If this is the case, If someone could point me to a detailed and up to date walkthrough of how to make this happen that would be a start.

如果有人知道或知道如何成功创建的最新的逐步演练,那么这将是一个开始。有效且有效的企业发行证书,这将是纯金。

And if anyone has or knows of a definitive and up to date walkthrough of how to successfully create valid and working Enterprise distribution certificates, that would be solid gold.

这是我的错误日志代码,只是为了好玩

Here's my error log code just for fun

[MICodeSigningVerifier performValidationWithError:]: 186: Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.F1KrWm/extracted/Payload/<myRebuiltApp>.app identifier = com.<company>.<app> type = 4> : 0xe8008019 (Application signature not valid)
Mar 17 14:40:54 My-iPad installd[36] <Error>: 0x1d44000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Mar 17 14:40:55 My-iPad itunesstored[83] <Error>: 0x681000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.F1KrWm/extracted/Payload/<myRebuiltApp>.app identifier = com.<company>.<app> type = 4> : 0xe8008019 (Application signature not valid)" UserInfo=0x16edcd10 {LibMISErrorNumber=-402620391, LegacyErrorString=ApplicationVerificationFailed, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.F1KrWm/extracted/Payload/<myRebuiltApp>.app identifier = com.<company>.<app> type = 4> : 0xe8008019 (Application signature not valid), SourceFileLine=186}

对此的任何帮助将不胜感激。

Any help on this would be hugely appreciated.

推荐答案

所以我让它工作了。.不确定与其他时间有什么不同,但是在这里。

So I got it to work.. not sure exactly how this differed to any other time but here it is.


  • 同时连接了我的iPad和iPhone,并删除了所有预配置的
    配置文件

  • 全部删除了(开发人员/发行人)通过
    钥匙串访问进行认证

  • 验证登录名是默认文件夹

  • 在Apple Dev Center中撤消了我的证书
  • 创建了新的分发证书(但之后没有下载)

  • 进行了xcode并刷新了签名身份(由于删除了keychainaccess而现在为空) )

  • 从xcode请求了一个新的开发人员资料(为我建立了一个)

  • 请求了一个新的发行人资料(有一个因此它从我几秒钟前做了的那个)

  • 这些现在显示在钥匙串访问中

  • 返回开发中心以创建全新的应用程序ID(对以前的版本使用新名称)

  • 创建了新的配置文件并下载了它。

  • 返回到应用程序,以使用新的配置文件对它进行解压缩,修改和辞职

  • 创建了新的配置文件plist文件并将其全部上传到SSL站点

  • 去喝咖啡

  • 将应用下载到我的设备上

  • 可以。

  • 也在我的女友设备上进行了测试。

  • 任务成功。

  • Connected both my iPad and iPhone and removed all provisioning profiles
  • Removed all (developer/distribution) certifcates from keychain access
  • Verified that Logins is the default folder
  • Revoked my certificates in Apple Dev Center
  • Created a new Distribution certificate (but didn't download it after)
  • went to xcode and refreshed the signing identities (now empty due to removing in keychainaccess)
  • requested a new developer profile from xcode (it built one for me)
  • requested a new distribution profile (there was one so it refreshed from the one i made a few seconds ago)
  • These now show up in keychainaccess
  • returned to dev center to make a brand new app id (with a new name to previous editions)
  • created a new provisioning profile and downloaded it.
  • returned to the app to unzip+modify+resign it with the new provisioning profile
  • Created new plist file and uploaded all to the SSL site
  • Went for a coffee
  • Downloaded the app to my device
  • It works.
  • Tested on my girlfriends device too.
  • Mission successful.

已经经历了很多次,我不知道其中哪一部分是获胜的部分,所以我只是列出它们,希望对别人有所帮助。
,如果有人知道哪个部分是获胜部分。让我知道。我不知道该如何应对。

having been through this so many times i have no idea which part of this was the winning part so i'm just listing them all in hope that it helps someone out. if anyone knows which part was the winning part. Do let me know. I don't know how i'd cope going through that again.

这篇关于iOS xCode6(应用程序签名无效)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆