@@ -269,10 +269,10 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
269
269
args = args . concat ( ( buildConfig && buildConfig . architectures ) || defaultArchitectures ) ;
270
270
271
271
let xcodeBuildVersion = this . getXcodeVersion ( ) ;
272
- if ( helpers . versionCompare ( xcodeBuildVersion , "8.0" ) >= 0 ) {
272
+ if ( helpers . versionCompare ( xcodeBuildVersion , "8.0" ) >= 0 ) {
273
273
let teamId = this . getDevelopmentTeam ( ) ;
274
274
if ( teamId ) {
275
- args = args . concat ( "DEVELOPMENT_TEAM=" + teamId ) ;
275
+ args = args . concat ( "DEVELOPMENT_TEAM=" + teamId ) ;
276
276
}
277
277
}
278
278
} else {
@@ -478,10 +478,10 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
478
478
try {
479
479
this . $fs . createDirectory ( path . dirname ( compatabilityXibPath ) ) . wait ( ) ;
480
480
this . $fs . writeFile ( compatabilityXibPath , content ) . wait ( ) ;
481
- } catch ( e ) {
481
+ } catch ( e ) {
482
482
this . $logger . warn ( "We have failed to add compatability LaunchScreen.xib due to: " + e ) ;
483
483
}
484
- } catch ( e ) {
484
+ } catch ( e ) {
485
485
this . $logger . warn ( "We have failed to check if we need to add a compatability LaunchScreen.xib due to: " + e ) ;
486
486
}
487
487
}
@@ -687,7 +687,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
687
687
688
688
let firstPostInstallIndex = projectPodfileContent . indexOf ( IOSProjectService . PODFILE_POST_INSTALL_SECTION_NAME ) ;
689
689
if ( firstPostInstallIndex !== - 1 && firstPostInstallIndex !== projectPodfileContent . lastIndexOf ( IOSProjectService . PODFILE_POST_INSTALL_SECTION_NAME ) ) {
690
- this . $logger . warn ( `Podfile contains more than one post_install sections. You need to open ${ this . projectPodFilePath } file and manually resolve this issue.` ) ;
690
+ this . $cocoapodsService . mergePodfileHookContent ( IOSProjectService . PODFILE_POST_INSTALL_SECTION_NAME , this . projectPodFilePath ) . wait ( ) ;
691
691
}
692
692
693
693
let xcuserDataPath = path . join ( this . xcodeprojPath , "xcuserdata" ) ;
@@ -948,7 +948,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
948
948
let pluginPlatformsFolderPath = plugin . pluginPlatformsFolderPath ( IOSProjectService . IOS_PLATFORM_NAME ) ;
949
949
let pluginXcconfigFilePath = path . join ( pluginPlatformsFolderPath , "build.xcconfig" ) ;
950
950
if ( this . $fs . exists ( pluginXcconfigFilePath ) . wait ( ) ) {
951
- this . mergeXcconfigFiles ( pluginXcconfigFilePath , this . $options . release ? this . pluginsReleaseXcconfigFilePath : this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
951
+ this . mergeXcconfigFiles ( pluginXcconfigFilePath , this . $options . release ? this . pluginsReleaseXcconfigFilePath : this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
952
952
}
953
953
}
954
954
@@ -999,7 +999,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
999
999
return xcodeBuildVersion ;
1000
1000
}
1001
1001
1002
- private getDevelopmentTeams ( ) : Array < { id :string , name : string } > {
1002
+ private getDevelopmentTeams ( ) : Array < { id : string , name : string } > {
1003
1003
let dir = path . join ( process . env . HOME , "Library/MobileDevice/Provisioning Profiles/" ) ;
1004
1004
let files = this . $fs . readDirectory ( dir ) . wait ( ) ;
1005
1005
let teamIds : any = { } ;
@@ -1012,18 +1012,18 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1012
1012
teamIds [ teamId ] = teamName ;
1013
1013
}
1014
1014
}
1015
- let teamIdsArray = new Array < { id :string , name : string } > ( ) ;
1015
+ let teamIdsArray = new Array < { id : string , name : string } > ( ) ;
1016
1016
for ( let teamId in teamIds ) {
1017
- teamIdsArray . push ( { id :teamId , name :teamIds [ teamId ] } ) ;
1017
+ teamIdsArray . push ( { id : teamId , name : teamIds [ teamId ] } ) ;
1018
1018
}
1019
1019
return teamIdsArray ;
1020
1020
}
1021
1021
1022
1022
private getProvisioningProfileValue ( name : string , text : string ) : string {
1023
- let findStr = "<key>" + name + "</key>" ;
1023
+ let findStr = "<key>" + name + "</key>" ;
1024
1024
let index = text . indexOf ( findStr ) ;
1025
1025
if ( index > 0 ) {
1026
- index = text . indexOf ( "<string>" , index + findStr . length ) ;
1026
+ index = text . indexOf ( "<string>" , index + findStr . length ) ;
1027
1027
if ( index > 0 ) {
1028
1028
index += "<string>" . length ;
1029
1029
let endIndex = text . indexOf ( "</string>" , index ) ;
@@ -1043,7 +1043,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1043
1043
line = line . replace ( / \/ ( \/ ) [ ^ \n ] * $ / , "" ) ;
1044
1044
if ( line . indexOf ( "DEVELOPMENT_TEAM" ) >= 0 ) {
1045
1045
teamId = line . split ( "=" ) [ 1 ] . trim ( ) ;
1046
- if ( teamId [ teamId . length - 1 ] === ';' ) {
1046
+ if ( teamId [ teamId . length - 1 ] === ';' ) {
1047
1047
teamId = teamId . slice ( 0 , - 1 ) ;
1048
1048
}
1049
1049
}
@@ -1086,7 +1086,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1086
1086
"Yes, persist the team id in platforms folder." ,
1087
1087
"No, don't persist this setting."
1088
1088
] ;
1089
- let choicePersist = this . $prompter . promptForChoice ( "Do you want to make teamId: " + teamId + " a persistent choice for your app?" , choicesPersist ) . wait ( ) ;
1089
+ let choicePersist = this . $prompter . promptForChoice ( "Do you want to make teamId: " + teamId + " a persistent choice for your app?" , choicesPersist ) . wait ( ) ;
1090
1090
switch ( choicesPersist . indexOf ( choicePersist ) ) {
1091
1091
case 0 :
1092
1092
let xcconfigFile = path . join ( this . $projectData . appResourcesDirectoryPath , this . platformData . normalizedPlatformName , "build.xcconfig" ) ;
0 commit comments