开发者

Xcode / Build automation - How do I pass the Code Signing Identity as an argument to xcodebuild?

I'm trying to automate our entire build process using hudson and a mashup of ruby scripts. Is it possible to pass the values for Versioning System, Bundle Version, Code Signing Identity and Entitlements a开发者_如何学JAVAs arguments to xcodebuild?


+1 for using hudson to automate your build process, it makes for a great development environment.

xcodebuild -help

You can specify all sorts of things that should help you. You will possibly have to configure some schemes or configurations to get exactly what you need, but it should all be do-able.


In Xcode 5 we are using CODE_SIGN_IDENTITY

xcodebuild -workspace MyProject.xcodeproj/project.xcworkspace \
    -scheme "$(SCHEME)" -derivedDataPath ./ \
    -configuration $(XCODE_BUILD_CONFIGURATION) \
    PROFILE_NAME="$(PROFILE_NAME)" \
    ARCHS="armv7" \
    CODE_SIGN_IDENTITY="$(CODE_SIGN_IDENTITY)" \
    CODE_SIGN_ENTITLEMENTS="$(CODE_SIGN_ENTITLEMENTS)" \
    build
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜