简体   繁体   English

无法从终端进行Cordova构建的代码签名-xcode8

[英]Code signing fails from Terminal for cordova build - xcode8

I get the below error when I do a build from Terminal with the command 当我使用命令从Terminal进行构建时,出现以下错误

cordova build ios --device 科尔多瓦建立ios --device


Check dependencies No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "**********" with a private key was found. 检查依赖关系未找到签名证书“​​ iOS Development”:未找到与团队ID“ **********”匹配且带有私钥的“ iOS Development”签名证书。 Code signing is required for product type 'Application' in SDK 'iOS 10.0' SDK'iOS 10.0'中的产品类型'Application'需要代码签名


Terminal error 终端错误

I have an Enterprise Account and I am trying to use a "iPhone Distribution" for In-house distribution 我有一个企业帐户,并且正在尝试使用“ iPhone分发”进行内部分发

With the same settings, I am able to build the app from Xcode directly (So, I don't think there is an issue with Keychain Access storing my certificate) 使用相同的设置,我可以直接从Xcode生成应用程序(因此,我认为存储我的证书的钥匙串访问不存在问题)

But, I want the build to be created from Terminal for automation. 但是,我希望从Terminal创建该版本以实现自动化。

Can anyone help.. 谁能帮忙..

Thanks, 谢谢,

The Cordova build is failing because you're not specifying the --codeSignIdentity or --provisioningProfile in your Terminal command. Cordova构建失败,因为您没有在终端命令中指定--codeSignIdentity--provisioningProfile Just pass through the same ones that you've specified in your target settings in Xcode. 只需传递您在Xcode中的目标设置中指定的相同内容即可。

For more information on configuring code signing for your Cordova app, check the Cordova documentation . 有关为Cordova应用程序配置代码签名的更多信息,请参阅Cordova文档

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

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