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."