Question

I have an Xcode project for an iOS application.

I plan building it through commandline using xcodebuild.

I will be adding minor customizations from build to build, producing slightly different versions of the application (for branding purpose).

What I need is a way to automatically set a specific certificate for each build. Is it possible to somehow set a certificate for the build through command line?

To clarify - every time I build the project, I want to use a new certificate.

Was it helpful?

Solution

before the build, set environment variable CODE_SIGNING_IDENTITY="name of certificate"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top