Provide login credentials to xcodebuild

Originator:getaaron
Number:rdar://48835718 Date Originated:3/12/19
Status:OPEN Resolved:
Product:Developer Tools Product Version:
Classification:Suggestion Reproducible:
 
I want to use

xcodebuild […] -allowProvisioningUpdates

To build my iOS app and have a provisioning profile automatically generated.

`man xcodebuild` says:

> Requires a developer account to have been added in Xcode's Accounts preference pane.

This works great locally!

When I run this in my CI server, I see

> Code Signing Error: There are no accounts registered with Xcode. Add your developer account to Xcode

Because, of course, I'm not logged in there.

I would like a way to either

- Pass credentials to `xcodebuild […] -allowProvisioningUpdates`, or
- Add an account to Xcode's Accounts preference pane from the command line

So that I can use this great feature on my CI server!

If you know of any workarounds that don't require using the GUI I would love to hear them

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!