Enable ProvisioningStyle to be overridden from xcodebuild

Originator:nicholas.helke
Number:rdar://32268549 Date Originated:2017-05-18
Status:Open Resolved:DUPLICATE OF 28077832 (OPEN)
Product:Developer Tools Product Version:8.3.2
Classification:Suggestion Reproducible:
 
We produce apps for newspapers and magazines including Economist, Telegraph, Cosmo and SciAm.

We use Automatic code signing for all of our projects which works very well in development.

Unfortunately automatic code signing does not work well with our CI infrastructure which rebuilds the app for each publisher using their team's code signing, for ad-hoc and app-store.

At the moment this has forced us to resort to patching the project.pbxproj file on the fly on the CI server to remove the DevelopmentTeam and ProvisioningStyle Target Attributes before calling xcodebuild with manual code signing params.

Ideally we would like a means of telling xcodebuild to ignore automatic provisioning without modifying the project file.

Steps to reproduce:
1. Take project with automatic signing enabled
2. Call xcodebuild with DEVELOPMENT_TEAM, CODE_SIGN_IDENTITY and PROVISIONING_PROFILE overrides on CLI

Expected results:
The build to succeed using the manual code signing parameters

Observed Results:
Build fails with:

Check dependencies
Project has conflicting provisioning settings. Project is automatically signed, but provisioning profile xxxx has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the project editor.

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!