Cordova应用程式的代码签名失败(使用XCode 5.1.1和Cordova 3.4.1-0.1.0) [英] Code signing fails for Cordova app (using XCode 5.1.1 and Cordova 3.4.1-0.1.0)

查看:377
本文介绍了Cordova应用程式的代码签名失败(使用XCode 5.1.1和Cordova 3.4.1-0.1.0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在为App Store或Ad Hoc部署签署基于Cordova的应用程序时遇到了问题。

I've been having trouble code signing my Cordova-based app for either App Store or Ad Hoc deployments.

我可以使用它来构建和运行我的模拟器和我的iPad。我也可以使用XCode创建一个存档,没有任何问题。但是当我尝试创建一个Ad Hoc .ipa文件或推到iTunes Connect,我在一个警报对话框中收到此消息:

I can get it to build and run on both my emulator and my iPad. I can also create an archive using XCode without any problems. But when I try to create an Ad Hoc .ipa file or push to iTunes Connect, I get this message in an alert dialog:


代码签名操作失败

检查您选择的身份是否有效。

Code signing operation failed
Check that the identity you selected is valid.


  • 在Apple开发者门户网站重新制作了我的开发和生产证书以及开发,特别和应用商店配置配置文件

  • 删除我的钥匙串中的所有证书并重新安装

  • 从我的系统中删除所有配置文件并重新安装

  • 将我的项目上的代码签名身份设置为以下所有组合:

    • iOS Developer

    • iOS分发

    • Recreated my development and production certificates along with development, ad hoc and app store provisioning profiles in Apple's developer portal
    • Deleted all the certificates from my keychain and reinstalled them
    • Deleted all the provisioning profiles from my system and reinstalled them
    • Set the code signing identity on my project to all combinations of the following
      • iOS Developer
      • iOS Distribution

      • 开发者个人资料

      • Ad hoc个人资料

      • 应用商店个人资料

      这些都没有让我超过管理器中的代码签名错误。所以我试图从命令行使用 xcodebuild ,并得到以下错误:

      None of these have gotten me past the code signing error in Organizer. So then I tried using xcodebuild from the command-line and got the following error:


      错误:代码签名操作失败

      error: Code signing operation failed

      我在使用Titanium创建的工作站上有另一个应用程序。使用Titanium我可以构建和部署Ad Hoc和App Store版本没有任何问题。

      I have another app on my workstation that was created with Titanium. Using Titanium I can build and deploy both Ad Hoc and App Store versions without any issues.

      在我的应用程序的XCode项目中有CordovaLib项目吗?或者在我的项目中有一些配置错误。

      Is there something with the CordovaLib project inside my app's XCode project? Or is there something I'm configuring wrong within my project.

      到目前为止,我已经花了约8个小时来处理这个问题。非常感谢任何见解。

      I've spent about 8 hours working on this issue so far. Any insights would be greatly appreciated.

      版本(供参考)


      • 工作站是具有OSX 10.9的Macbook Pro

      • XCode 5.1.1

      • Cordova 3.4.1-0.1.0

      推荐答案

      我也有这个问题,花了几个小时和时间试图通过撤销和重新创建证书来找出代码签名问题,删除和重新创建配置文件。

      I also had this problem and spent hours and hours trying to figure out the code signing issue by revoking and recreating certificates, and deleting and recreating provisioning profiles.

      毕竟,并且找到这个线程,我试着删除项目的一些部分,原来的海报说。罪魁祸首最终是grunt.js

      After all of that, and finding this thread, I tried deleting some parts of the project, as the original poster said. The culprit ended up being grunt.js

      rm -R www / node_modules / grunt *

      这篇关于Cordova应用程式的代码签名失败(使用XCode 5.1.1和Cordova 3.4.1-0.1.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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