XCode script package signature conflict

package iOS, with script on the Jenkins CI of intranet cannot connect to the extranet , so specify CODE SIGN and PROVISIONING PROFILE

in the packaging command as Manual .
xcodebuild archive \
-project ${projectName}.xcodeproj \
-scheme ${projectName} \
-configuration ${configuration} \
-archivePath ../${projectName}.xcarchive \
-sdk iphoneos \
DEVELOPMENT_TEAM=${developmentTeam} \
CODE_SIGN_IDENTITY="iPhone Distribution: xxx" \
PROVISIONING_PROFILE_SPECIFIER="xxx"

there is a dependent sub-project QBImagePicker introduced as framework , which is automatically signed by default and belongs to package under node_modules , so the project settings cannot be changed.

CI reports an error QBImagePicker conflicts with the signature of the main project

=== BUILD TARGET QBImagePicker OF PROJECT QBImagePicker WITH THE DEFAULT CONFIGURATION (Release) ===

Check dependencies
Code Signing Error: QBImagePicker has conflicting provisioning settings. 
QBImagePicker is automatically signed, but code signing identity iPhone Distribution: xxxx. has been manually specified. 
Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.

** ARCHIVE FAILED **

subproject QBImagePicker need code sign ? How to solve this problem?

Mar.04,2021

answer your own questions.

framework cannot be signed as Manual, but can only be signed with Auto Sign , so CODE_SIGN_IDENTITY= "iPhone Developer" represents Auto Sign in the xcodebuild command, but PROVISIONING_PROFILE_SPECIFIER

cannot be specified.
xcodebuild archive \
-project ${projectName}.xcodeproj \
-scheme ${projectName} \
-configuration ${configuration} \
-archivePath ../${projectName}.xcarchive \
-sdk iphoneos \
DEVELOPMENT_TEAM=${developmentTeam} \
CODE_SIGN_IDENTITY="iPhone Developer"

useful
Jenkins automatic packaging error. I guess the value of CODE_SIGN_IDENTITY stands for manual or automatic
CODE_SIGN_IDENTITY = "iPhone Developer"; automatic packaging
CODE_SIGN_IDENTITY = "iPhone Distribution: XXX Co., Ltd."; manual packaging
record it and leave it to the right person

Menu