How can I disable "Automatically manage signing" not manually?

I'm developing Cordova app and using Command Line Tools like "xcodebuild" on Xcode 8 for automatic building by Jenkins.

In Xcode 8, it offers a new signing mode "Automatically manage signing".


When I built my xcodeproj by executing the below command with no manual operation on Xcode 8, I got the below error message on CLI.

xcodebuild -project "/platforms/ios/test.xcodeproj" -sdk "iphoneos10.0" -configuration "Release" -scheme test ENABLE_BITCODE="NO" install DSTROOT="/target/debug" DEVELOPMENT_TEAM="teamId" PROVISIONING_PROFILE_SPECIFIER="teamId/provisioningProfileName"

----------------

Check dependencies

TestApp has conflicting provisioning settings. TestApp is automatically signed, but provisioning profile provisioningProfileName 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.

Code signing is required for product type 'Application' in SDK 'iOS 10.0'

Code signing is required for product type 'Application' in SDK 'iOS 10.0'


** INSTALL FAILED **


The following build commands failed:

Check dependencies

(1 failure)

----------------


However, in case that I opened Xcode 8 and disabled "Automatically manage signing" before executing the above command, I made it.

So I would like to know how to disable it automatically.

I assume that it relates to xcodebuild command but I don't know the option command.

How can I switch to manual signing without opening Xcode 8?


For your information, if I executed the below command, the message on CLI was same.


xcodebuild -project "/platforms/ios/test.xcodeproj" -sdk "iphoneos10.0" -configuration "Release" -scheme test ENABLE_BITCODE="NO" install DSTROOT="/target/debug" DEVELOPMENT_TEAM="teamId"

Having the same configuration (IOS 10 and XCode 8), I face the same issue while trying to build my cordova project and I'd really like to disable the automatic signing feature of Xcode...

I wrote about the workaround I used to resolve this: https://dpogue.ca/articles/cordova-xcode8.html


To recap, you need to specify your developer team ID. In the next version of Cordova-iOS, you can do this with

developerTeam
in your build.json file. I have a hook available in the meantime.


You also need to set your code signing identity to "iPhone Developer", even for release builds. Do this with

codeSignIdentity
in your build.json.

You should not need to specify a provisioning profile, Xcode will automatically handle that when it has the team ID.


To package up an ad-hoc, enterprise, or app store build, you will need to use the Archive step in Xcode. This will automatically re-sign with the distribution identity.


Hope that helps!

I get this error as well, but not for my app. Instead, I get this for the cocoapod dependencies of my app. The targets are configured with Automatically manage signing disabled.


If I instead enable automatically manage signing for these targets, then I get a different error: XXX does not support provisioning profiles. XXX does not support provisioning profiles, but provisioning profile YYY has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor.


Not sure what to do here. We override the DEVELOPMENT_TEAM, PROVISIONING_PROFILE, and CODE_SIGN_IDENTITY build settings on the xcodebuild command line because our developers work for a different company, and use their own Apple team for development.


Any ideas?


Thanks,


Sean

How can I disable "Automatically manage signing" not manually?
 
 
Q