开发者

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

开发者 https://www.devze.com 2023-02-25 15:57 出处:网络
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 Entitleme

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

精彩评论

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