@@ -997,11 +997,13 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
997
997
return ( ( ) => {
998
998
// TRICKY: I am not sure why we totally disregard the buildConfig parameter here.
999
999
buildConfig = buildConfig || { } ;
1000
+ let isXCConfigDefined = false ;
1000
1001
1001
1002
if ( this . $options . teamId ) {
1002
1003
buildConfig . teamIdentifier = this . $options . teamId ;
1003
1004
} else {
1004
1005
buildConfig = this . readXCConfigSigning ( ) ;
1006
+ isXCConfigDefined = true ;
1005
1007
if ( ! buildConfig . codeSignIdentity && ! buildConfig . mobileProvisionIdentifier && ! buildConfig . teamIdentifier ) {
1006
1008
buildConfig = this . readBuildConfigFromPlatforms ( ) ;
1007
1009
}
@@ -1013,6 +1015,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1013
1015
} else if ( buildConfig . teamIdentifier ) {
1014
1016
signingStyle = "Automatic" ;
1015
1017
} else if ( helpers . isInteractive ( ) ) {
1018
+ isXCConfigDefined = false ;
1016
1019
let signingStyles = [
1017
1020
"Manual - Select existing provisioning profile for use" ,
1018
1021
"Automatic - Select Team ID for signing and let Xcode select managed provisioning profile"
@@ -1038,7 +1041,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1038
1041
}
1039
1042
}
1040
1043
1041
- if ( signingStyle ) {
1044
+ if ( signingStyle && ! isXCConfigDefined ) {
1042
1045
const pbxprojPath = path . join ( projectRoot , this . $projectData . projectName + ".xcodeproj" , "project.pbxproj" ) ;
1043
1046
const xcode = Xcode . open ( pbxprojPath ) ;
1044
1047
switch ( signingStyle ) {
@@ -1052,6 +1055,11 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1052
1055
xcode . save ( ) ;
1053
1056
}
1054
1057
1058
+ if ( isXCConfigDefined ) {
1059
+ delete buildConfig . mobileProvisionIdentifier ;
1060
+ delete buildConfig . teamIdentifier ;
1061
+ }
1062
+
1055
1063
return buildConfig ;
1056
1064
} ) . future < IiOSBuildConfig > ( ) ( ) ;
1057
1065
}
0 commit comments