@@ -269,10 +269,10 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
269269 args = args . concat ( ( buildConfig && buildConfig . architectures ) || defaultArchitectures ) ;
270270
271271 let xcodeBuildVersion = this . getXcodeVersion ( ) ;
272- if ( helpers . versionCompare ( xcodeBuildVersion , "8.0" ) >= 0 ) {
272+ if ( helpers . versionCompare ( xcodeBuildVersion , "8.0" ) >= 0 ) {
273273 let teamId = this . getDevelopmentTeam ( ) ;
274274 if ( teamId ) {
275- args = args . concat ( "DEVELOPMENT_TEAM=" + teamId ) ;
275+ args = args . concat ( "DEVELOPMENT_TEAM=" + teamId ) ;
276276 }
277277 }
278278 } else {
@@ -478,10 +478,10 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
478478 try {
479479 this . $fs . createDirectory ( path . dirname ( compatabilityXibPath ) ) . wait ( ) ;
480480 this . $fs . writeFile ( compatabilityXibPath , content ) . wait ( ) ;
481- } catch ( e ) {
481+ } catch ( e ) {
482482 this . $logger . warn ( "We have failed to add compatability LaunchScreen.xib due to: " + e ) ;
483483 }
484- } catch ( e ) {
484+ } catch ( e ) {
485485 this . $logger . warn ( "We have failed to check if we need to add a compatability LaunchScreen.xib due to: " + e ) ;
486486 }
487487 }
@@ -687,7 +687,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
687687
688688 let firstPostInstallIndex = projectPodfileContent . indexOf ( IOSProjectService . PODFILE_POST_INSTALL_SECTION_NAME ) ;
689689 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 ( ) ;
691691 }
692692
693693 let xcuserDataPath = path . join ( this . xcodeprojPath , "xcuserdata" ) ;
@@ -948,7 +948,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
948948 let pluginPlatformsFolderPath = plugin . pluginPlatformsFolderPath ( IOSProjectService . IOS_PLATFORM_NAME ) ;
949949 let pluginXcconfigFilePath = path . join ( pluginPlatformsFolderPath , "build.xcconfig" ) ;
950950 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 ( ) ;
952952 }
953953 }
954954
@@ -999,7 +999,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
999999 return xcodeBuildVersion ;
10001000 }
10011001
1002- private getDevelopmentTeams ( ) : Array < { id :string , name : string } > {
1002+ private getDevelopmentTeams ( ) : Array < { id : string , name : string } > {
10031003 let dir = path . join ( process . env . HOME , "Library/MobileDevice/Provisioning Profiles/" ) ;
10041004 let files = this . $fs . readDirectory ( dir ) . wait ( ) ;
10051005 let teamIds : any = { } ;
@@ -1012,18 +1012,18 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
10121012 teamIds [ teamId ] = teamName ;
10131013 }
10141014 }
1015- let teamIdsArray = new Array < { id :string , name : string } > ( ) ;
1015+ let teamIdsArray = new Array < { id : string , name : string } > ( ) ;
10161016 for ( let teamId in teamIds ) {
1017- teamIdsArray . push ( { id :teamId , name :teamIds [ teamId ] } ) ;
1017+ teamIdsArray . push ( { id : teamId , name : teamIds [ teamId ] } ) ;
10181018 }
10191019 return teamIdsArray ;
10201020 }
10211021
10221022 private getProvisioningProfileValue ( name : string , text : string ) : string {
1023- let findStr = "<key>" + name + "</key>" ;
1023+ let findStr = "<key>" + name + "</key>" ;
10241024 let index = text . indexOf ( findStr ) ;
10251025 if ( index > 0 ) {
1026- index = text . indexOf ( "<string>" , index + findStr . length ) ;
1026+ index = text . indexOf ( "<string>" , index + findStr . length ) ;
10271027 if ( index > 0 ) {
10281028 index += "<string>" . length ;
10291029 let endIndex = text . indexOf ( "</string>" , index ) ;
@@ -1043,7 +1043,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
10431043 line = line . replace ( / \/ ( \/ ) [ ^ \n ] * $ / , "" ) ;
10441044 if ( line . indexOf ( "DEVELOPMENT_TEAM" ) >= 0 ) {
10451045 teamId = line . split ( "=" ) [ 1 ] . trim ( ) ;
1046- if ( teamId [ teamId . length - 1 ] === ';' ) {
1046+ if ( teamId [ teamId . length - 1 ] === ';' ) {
10471047 teamId = teamId . slice ( 0 , - 1 ) ;
10481048 }
10491049 }
@@ -1086,7 +1086,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
10861086 "Yes, persist the team id in platforms folder." ,
10871087 "No, don't persist this setting."
10881088 ] ;
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 ( ) ;
10901090 switch ( choicesPersist . indexOf ( choicePersist ) ) {
10911091 case 0 :
10921092 let xcconfigFile = path . join ( this . $projectData . appResourcesDirectoryPath , this . platformData . normalizedPlatformName , "build.xcconfig" ) ;
0 commit comments