shell – xcodebuild的CODE_SIGN_IDENTITY参数(Xcode4)

我正在使用 Xcode3附带的xcodebuild实用程序来自动化我在Hudson下的构建.该命令如下所示:
xcodebuild -project Project.xcodeproj -target Target -configuration Release -sdk iphoneos CODE_SIGN_IDENTITY[sdk=iphoneos*]="iPhone Distribution:XXXXXX"

我正在尝试对Xcode4使用相同的命令,但似乎xcodebuild只是忽略CODE_SIGN_IDENTITY参数并使用为Xcode中的目标选择的配置文件进行签名.

这对我来说非常重要,因为我必须使用3-4种不同的配置文件进行签名.它适用于Xcode3,但不适用于Xcode4.

知道怎么解决这个问题吗?

较新的xcodebuild现在允许指定设置.
摘自 developer.apple.com
xcodebuild [-project projectname] [-target targetname ...]
           [-configuration configurationname] [-sdk [sdkfullpath | sdkname]]
           [buildaction ...] [setting=value ...] [-userdefault=value ...]

我也找到了这个资源来解释available settings

CODE_SIGN_IDENTITY (Code Signing Identity)
    Description: Identifier. Specifies the name of a code signing identity.
    Example value: iPhone Developer

但是,可用命令的索引中缺少PROVISIONING_PROFILE.

我最终使用的命令指定了“CODE_SIGN_IDENTITY”& “PROVISIONING_PROFILE”设置.

xcodebuild -sdk <iphoneos> -target <target_name> -configuration <Debug> CODE_SIGN_IDENTITY="iPhone Developer: Mister Smith" PROVISIONING_PROFILE="XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX"

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...