(app name) is automatically signed, but provisioning profile Wildcard Enterprise Distribution Profile has been manually specified.

I am trying to compile and sign an application. The app has a different team / provisioing profile that is used for development, and I am trying to override the setting and specify a distribution signing certificate and distribution provisioing profile to use. I am getting the foloowing error:


The error:

(App Name) has conflicting provisioning settings. (App Name) is automatically signed, but provisioning profile Wildcard Enterprise Distribution Profile has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the target editor. Code signing is required for product type 'Application' in SDK 'iOS 10.0'.



From an automated build perspective, how can I override the settings in the project? You can override the settings using xcodebuild in previous versions.


Here is the command:


/usr/bin/xcodebuild -scheme MyApp -workspace MyApp.xcworkspace -configuration Debug archive "CODE_SIGN_IDENTITY=XXXXXXXXXXX" -archivePath /var/jenkins/workspace/xxxxxx_ios_debug/build/archive/myapp.xcarchive PROVISIONING_PROFILE="XXXXXXXXXX."

I have the same issue.


Apple, please have a look!

I've submitted to Bugreport/Radar:

https://openradar.appspot.com/27784499


Workaround is to disable "Automatically manage signing" in Xcode (General tab).

When you say "disable Automatically manage signing" do you mean the following:


1. Disable "Automatically manage signing" in XCode under General tab

2. Save project

3. Commit to Source Control

4. Kick off Jenkins/CI Build process to let it checkout the changes from Source Control and hopefully pick up the setting to turn off "Automatically manage signing".


I'm assuming, once "Automatically Manage Signing" is turned off, the project file (xml?) is updated and when committed, the build command will know to turn it off?

(app name) is automatically signed, but provisioning profile Wildcard Enterprise Distribution Profile has been manually specified.
 
 
Q