@@ -130,9 +130,9 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
130130 // Starting with NativeScript for iOS 1.6.0, the project Info.plist file resides not in the platform project,
131131 // but in the hello-world app template as a platform specific resource.
132132 if ( this . $fs . exists ( path . join ( projectRootFilePath , IOSProjectService . IOS_PROJECT_NAME_PLACEHOLDER + "-Info.plist" ) ) ) {
133- this . replaceFileName ( "-Info.plist" , projectRootFilePath ) . wait ( ) ;
133+ this . replaceFileName ( "-Info.plist" , projectRootFilePath ) ;
134134 }
135- this . replaceFileName ( "-Prefix.pch" , projectRootFilePath ) . wait ( ) ;
135+ this . replaceFileName ( "-Prefix.pch" , projectRootFilePath ) ;
136136
137137 let xcschemeDirPath = path . join ( this . platformData . projectRoot , IOSProjectService . IOS_PROJECT_NAME_PLACEHOLDER + IOSProjectService . XCODE_PROJECT_EXT_NAME , "xcshareddata/xcschemes" ) ;
138138 let xcschemeFilePath = path . join ( xcschemeDirPath , IOSProjectService . IOS_PROJECT_NAME_PLACEHOLDER + IOSProjectService . XCODE_SCHEME_EXT_NAME ) ;
@@ -142,13 +142,13 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
142142 this . $logger . debug ( "Checkpoint 0" ) ;
143143 this . replaceFileContent ( xcschemeFilePath ) . wait ( ) ;
144144 this . $logger . debug ( "Checkpoint 1" ) ;
145- this . replaceFileName ( IOSProjectService . XCODE_SCHEME_EXT_NAME , xcschemeDirPath ) . wait ( ) ;
145+ this . replaceFileName ( IOSProjectService . XCODE_SCHEME_EXT_NAME , xcschemeDirPath ) ;
146146 this . $logger . debug ( "Checkpoint 2" ) ;
147147 } else {
148148 this . $logger . debug ( "Copying xcscheme from template not found at " + xcschemeFilePath ) ;
149149 }
150150
151- this . replaceFileName ( IOSProjectService . XCODE_PROJECT_EXT_NAME , this . platformData . projectRoot ) . wait ( ) ;
151+ this . replaceFileName ( IOSProjectService . XCODE_PROJECT_EXT_NAME , this . platformData . projectRoot ) ;
152152
153153 let pbxprojFilePath = this . pbxProjPath ;
154154 this . replaceFileContent ( pbxprojFilePath ) . wait ( ) ;
@@ -162,11 +162,9 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
162162 } ) . future < void > ( ) ( ) ;
163163 }
164164
165- public afterCreateProject ( projectRoot : string ) : IFuture < void > {
166- return ( ( ) => {
167- this . $fs . rename ( path . join ( projectRoot , IOSProjectService . IOS_PROJECT_NAME_PLACEHOLDER ) ,
168- path . join ( projectRoot , this . $projectData . projectName ) ) . wait ( ) ;
169- } ) . future < void > ( ) ( ) ;
165+ public afterCreateProject ( projectRoot : string ) : void {
166+ this . $fs . rename ( path . join ( projectRoot , IOSProjectService . IOS_PROJECT_NAME_PLACEHOLDER ) ,
167+ path . join ( projectRoot , this . $projectData . projectName ) ) ;
170168 }
171169
172170 /**
@@ -779,13 +777,11 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
779777 } ) . future < void > ( ) ( ) ;
780778 }
781779
782- private replaceFileName ( fileNamePart : string , fileRootLocation : string ) : IFuture < void > {
783- return ( ( ) => {
784- let oldFileName = IOSProjectService . IOS_PROJECT_NAME_PLACEHOLDER + fileNamePart ;
785- let newFileName = this . $projectData . projectName + fileNamePart ;
780+ private replaceFileName ( fileNamePart : string , fileRootLocation : string ) : void {
781+ let oldFileName = IOSProjectService . IOS_PROJECT_NAME_PLACEHOLDER + fileNamePart ;
782+ let newFileName = this . $projectData . projectName + fileNamePart ;
786783
787- this . $fs . rename ( path . join ( fileRootLocation , oldFileName ) , path . join ( fileRootLocation , newFileName ) ) . wait ( ) ;
788- } ) . future < void > ( ) ( ) ;
784+ this . $fs . rename ( path . join ( fileRootLocation , oldFileName ) , path . join ( fileRootLocation , newFileName ) ) ;
789785 }
790786
791787 private executePodInstall ( ) : IFuture < any > {
0 commit comments