使用 xcodebuild 构建 iOS 应用程序,无需协同设计 [英] Building iOS applications using xcodebuild without codesign

查看:31
本文介绍了使用 xcodebuild 构建 iOS 应用程序,无需协同设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在为另一家公司开发应用.他们持有签名密钥,不愿与我们共享.

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

应该可以将构建和签名分开,但是如何在 xcodebuild 的命令行中指定它?

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

推荐答案

为了跳过代码签名,您可以像这样从控制台执行手动构建:

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 参数来定义您的构建设置.

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

请参阅此堆栈溢出答案,以获得有关如何在 Xcode 中禁用代码签名的详细说明.

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

这篇关于使用 xcodebuild 构建 iOS 应用程序,无需协同设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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