@@ -280,10 +280,10 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
280280 args = args . concat ( ( buildConfig && buildConfig . architectures ) || defaultArchitectures ) ;
281281
282282 let xcodeBuildVersion = this . getXcodeVersion ( ) ;
283- if ( helpers . versionCompare ( xcodeBuildVersion , "8.0" ) >= 0 ) {
283+ if ( helpers . versionCompare ( xcodeBuildVersion , "8.0" ) >= 0 ) {
284284 let teamId = this . getDevelopmentTeam ( ) ;
285285 if ( teamId ) {
286- args = args . concat ( "DEVELOPMENT_TEAM=" + teamId ) ;
286+ args = args . concat ( "DEVELOPMENT_TEAM=" + teamId ) ;
287287 }
288288 }
289289 } else {
@@ -551,10 +551,10 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
551551 try {
552552 this . $fs . createDirectory ( path . dirname ( compatabilityXibPath ) ) . wait ( ) ;
553553 this . $fs . writeFile ( compatabilityXibPath , content ) . wait ( ) ;
554- } catch ( e ) {
554+ } catch ( e ) {
555555 this . $logger . warn ( "We have failed to add compatability LaunchScreen.xib due to: " + e ) ;
556556 }
557- } catch ( e ) {
557+ } catch ( e ) {
558558 this . $logger . warn ( "We have failed to check if we need to add a compatability LaunchScreen.xib due to: " + e ) ;
559559 }
560560 }
@@ -761,7 +761,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
761761
762762 let firstPostInstallIndex = projectPodfileContent . indexOf ( IOSProjectService . PODFILE_POST_INSTALL_SECTION_NAME ) ;
763763 if ( firstPostInstallIndex !== - 1 && firstPostInstallIndex !== projectPodfileContent . lastIndexOf ( IOSProjectService . PODFILE_POST_INSTALL_SECTION_NAME ) ) {
764- this . $logger . warn ( `Podfile contains more than one post_install sections. You need to open ${ this . projectPodFilePath } file and manually resolve this issue.` ) ;
764+ this . $cocoapodsService . mergePodfileHookContent ( IOSProjectService . PODFILE_POST_INSTALL_SECTION_NAME , this . projectPodFilePath ) . wait ( ) ;
765765 }
766766
767767 let xcuserDataPath = path . join ( this . xcodeprojPath , "xcuserdata" ) ;
@@ -1019,7 +1019,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
10191019 let pluginPlatformsFolderPath = plugin . pluginPlatformsFolderPath ( IOSProjectService . IOS_PLATFORM_NAME ) ;
10201020 let pluginXcconfigFilePath = path . join ( pluginPlatformsFolderPath , "build.xcconfig" ) ;
10211021 if ( this . $fs . exists ( pluginXcconfigFilePath ) . wait ( ) ) {
1022- this . mergeXcconfigFiles ( pluginXcconfigFilePath , this . $options . release ? this . pluginsReleaseXcconfigFilePath : this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1022+ this . mergeXcconfigFiles ( pluginXcconfigFilePath , this . $options . release ? this . pluginsReleaseXcconfigFilePath : this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
10231023 }
10241024 }
10251025
@@ -1070,7 +1070,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
10701070 return xcodeBuildVersion ;
10711071 }
10721072
1073- private getDevelopmentTeams ( ) : Array < { id :string , name : string } > {
1073+ private getDevelopmentTeams ( ) : Array < { id : string , name : string } > {
10741074 let dir = path . join ( process . env . HOME , "Library/MobileDevice/Provisioning Profiles/" ) ;
10751075 let files = this . $fs . readDirectory ( dir ) . wait ( ) ;
10761076 let teamIds : any = { } ;
@@ -1083,18 +1083,18 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
10831083 teamIds [ teamId ] = teamName ;
10841084 }
10851085 }
1086- let teamIdsArray = new Array < { id :string , name : string } > ( ) ;
1086+ let teamIdsArray = new Array < { id : string , name : string } > ( ) ;
10871087 for ( let teamId in teamIds ) {
1088- teamIdsArray . push ( { id :teamId , name :teamIds [ teamId ] } ) ;
1088+ teamIdsArray . push ( { id : teamId , name : teamIds [ teamId ] } ) ;
10891089 }
10901090 return teamIdsArray ;
10911091 }
10921092
10931093 private getProvisioningProfileValue ( name : string , text : string ) : string {
1094- let findStr = "<key>" + name + "</key>" ;
1094+ let findStr = "<key>" + name + "</key>" ;
10951095 let index = text . indexOf ( findStr ) ;
10961096 if ( index > 0 ) {
1097- index = text . indexOf ( "<string>" , index + findStr . length ) ;
1097+ index = text . indexOf ( "<string>" , index + findStr . length ) ;
10981098 if ( index > 0 ) {
10991099 index += "<string>" . length ;
11001100 let endIndex = text . indexOf ( "</string>" , index ) ;
@@ -1114,7 +1114,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
11141114 line = line . replace ( / \/ ( \/ ) [ ^ \n ] * $ / , "" ) ;
11151115 if ( line . indexOf ( "DEVELOPMENT_TEAM" ) >= 0 ) {
11161116 teamId = line . split ( "=" ) [ 1 ] . trim ( ) ;
1117- if ( teamId [ teamId . length - 1 ] === ';' ) {
1117+ if ( teamId [ teamId . length - 1 ] === ';' ) {
11181118 teamId = teamId . slice ( 0 , - 1 ) ;
11191119 }
11201120 }
@@ -1157,7 +1157,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
11571157 "Yes, persist the team id in platforms folder." ,
11581158 "No, don't persist this setting."
11591159 ] ;
1160- let choicePersist = this . $prompter . promptForChoice ( "Do you want to make teamId: " + teamId + " a persistent choice for your app?" , choicesPersist ) . wait ( ) ;
1160+ let choicePersist = this . $prompter . promptForChoice ( "Do you want to make teamId: " + teamId + " a persistent choice for your app?" , choicesPersist ) . wait ( ) ;
11611161 switch ( choicesPersist . indexOf ( choicePersist ) ) {
11621162 case 0 :
11631163 let xcconfigFile = path . join ( this . $projectData . appResourcesDirectoryPath , this . platformData . normalizedPlatformName , "build.xcconfig" ) ;
0 commit comments