@@ -24,14 +24,18 @@ class IOSProjectService implements IPlatformProjectService {
2424 private $npm : INodePackageManager ) { }
2525
2626 public get platformData ( ) : IPlatformData {
27+ var projectRoot = path . join ( this . $projectData . platformsDir , "ios" ) ;
28+
2729 return {
2830 frameworkPackageName : "tns-ios" ,
2931 normalizedPlatformName : "iOS" ,
32+ appDestinationDirectoryPath : path . join ( projectRoot , this . $projectData . projectName ) ,
33+ appResourcesDestinationDirectoryPath : path . join ( projectRoot , this . $projectData . projectName , "Resources" , "icons" ) ,
3034 platformProjectService : this ,
3135 emulatorServices : this . $iOSEmulatorServices ,
32- projectRoot : path . join ( this . $projectData . platformsDir , "ios" ) ,
33- deviceBuildOutputPath : path . join ( this . $projectData . platformsDir , "ios" , "build" , "device" ) ,
34- emulatorBuildOutputPath : path . join ( this . $projectData . platformsDir , "ios" , "build" , "emulator" ) ,
36+ projectRoot : projectRoot ,
37+ deviceBuildOutputPath : path . join ( projectRoot , "build" , "device" ) ,
38+ emulatorBuildOutputPath : path . join ( projectRoot , "build" , "emulator" ) ,
3539 validPackageNamesForDevice : [
3640 this . $projectData . projectName + ".ipa"
3741 ] ,
@@ -109,25 +113,6 @@ class IOSProjectService implements IPlatformProjectService {
109113 } ) . future < void > ( ) ( ) ;
110114 }
111115
112- public prepareProject ( platformData : IPlatformData ) : IFuture < string > {
113- return ( ( ) => {
114- var appSourceDirectory = path . join ( this . $projectData . projectDir , constants . APP_FOLDER_NAME ) ;
115- var appDestinationDirectory = path . join ( platformData . projectRoot , this . $projectData . projectName ) ;
116- var resDirectory = path . join ( platformData . projectRoot , this . $projectData . projectName , "Resources" , "icons" ) ;
117- this . $fs . ensureDirectoryExists ( resDirectory ) . wait ( ) ;
118-
119- shell . cp ( "-Rf" , path . join ( appSourceDirectory , "*" ) , appDestinationDirectory ) ;
120-
121- var appResourcesDirectoryPath = path . join ( appDestinationDirectory , constants . APP_RESOURCES_FOLDER_NAME ) ;
122- if ( this . $fs . exists ( appResourcesDirectoryPath ) . wait ( ) ) {
123- shell . cp ( "-Rf" , path . join ( appResourcesDirectoryPath , platformData . normalizedPlatformName , "*" ) , resDirectory ) ;
124- this . $fs . deleteDirectory ( appResourcesDirectoryPath ) . wait ( ) ;
125- }
126-
127- return appDestinationDirectory ;
128- } ) . future < string > ( ) ( ) ;
129- }
130-
131116 public buildProject ( projectRoot : string ) : IFuture < void > {
132117 return ( ( ) => {
133118 var basicArgs = [
0 commit comments