用x codebuild构建iOS应用程序,而不codesign [英] Building iOS applications using xcodebuild without codesign

查看:202
本文介绍了用x codebuild构建iOS应用程序,而不codesign的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在建设另一家公司的应用程序。其所持有的签名密钥,宁可不与我们分享。

We're building an app for another company. They hold the signing key and would rather not share it with us.

应该可以分开构建和签署,但我怎么指定它在X codebuild的命令行?

It should be possible to separate build and sign, but how do I specify it on xcodebuild's command line?

修改对于那些来到这里的搜索。接受的答案是正确的 - 它的问题问什么。
然而的,大画面的分离建立和codesign(允许不具有分配密钥来构建应用程序的开发人员)。 X $ C $的C较新版本提供了工具。这不是严格意义上的回答这个问题,所以我张贴它作为一个要点是:<一href=\"https://gist.github.com/noamtm/5c3aaa0b615477162ccd\">https://gist.github.com/noamtm/5c3aaa0b615477162ccd.

EDIT for those coming here from search. The accepted answer is correct - it does what the question asks for. However, the big picture is separating build and codesign (allowing a developer that doesn't have the distribution key to build the app). Newer versions of Xcode provide the tools for that. This is not strictly an answer to this question, so I posted it as a gist: https://gist.github.com/noamtm/5c3aaa0b615477162ccd.

推荐答案

为了跳过code签名可以从这样的控制台进行手工打造:

In order to skip the code signing you can perform a manual build from the console like this:

xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

使用额外的 -configuration -target -sdk 参数,以确定您的构建设置。

Use additionally the -configuration, -target and -sdk parameters in order to define your build settings.

请参阅此 StackOverflow的答案,以获取有关如何禁用code-签约内的详细说明X $ C $角

Refer to this stackoverflow answer in order to get a detailed description on how to disable code-signing inside Xcode.

这篇关于用x codebuild构建iOS应用程序,而不codesign的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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