@@ -1010,30 +1010,30 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
10101010
10111011 private mergeProjectXcconfigFiles ( ) : IFuture < void > {
10121012 return ( ( ) => {
1013- this . $fs . deleteFile ( this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1014- this . $fs . deleteFile ( this . pluginsReleaseXcconfigFilePath ) . wait ( ) ;
1013+ this . $fs . deleteFile ( this . $options . release ? this . pluginsReleaseXcconfigFilePath : this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
10151014
10161015 let allPlugins : IPluginData [ ] = ( < IPluginsService > this . $injector . resolve ( "pluginsService" ) ) . getAllInstalledPlugins ( ) . wait ( ) ;
10171016 for ( let plugin of allPlugins ) {
10181017 let pluginPlatformsFolderPath = plugin . pluginPlatformsFolderPath ( IOSProjectService . IOS_PLATFORM_NAME ) ;
10191018 let pluginXcconfigFilePath = path . join ( pluginPlatformsFolderPath , "build.xcconfig" ) ;
10201019 if ( this . $fs . exists ( pluginXcconfigFilePath ) . wait ( ) ) {
1021- this . mergeXcconfigFiles ( pluginXcconfigFilePath , this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1022- this . mergeXcconfigFiles ( pluginXcconfigFilePath , this . pluginsReleaseXcconfigFilePath ) . wait ( ) ;
1020+ this . mergeXcconfigFiles ( pluginXcconfigFilePath , this . $options . release ? this . pluginsReleaseXcconfigFilePath : this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
10231021 }
10241022 }
10251023
10261024 let appResourcesXcconfigPath = path . join ( this . $projectData . projectDir , constants . APP_FOLDER_NAME , constants . APP_RESOURCES_FOLDER_NAME , this . platformData . normalizedPlatformName , "build.xcconfig" ) ;
10271025 if ( this . $fs . exists ( appResourcesXcconfigPath ) . wait ( ) ) {
1028- this . mergeXcconfigFiles ( appResourcesXcconfigPath , this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1029- this . mergeXcconfigFiles ( appResourcesXcconfigPath , this . pluginsReleaseXcconfigFilePath ) . wait ( ) ;
1026+ this . mergeXcconfigFiles ( appResourcesXcconfigPath , this . $options . release ? this . pluginsReleaseXcconfigFilePath : this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
10301027 }
10311028
10321029 let podFilesRootDirName = path . join ( "Pods" , "Target Support Files" , `Pods-${ this . $projectData . projectName } ` ) ;
10331030 let podFolder = path . join ( this . platformData . projectRoot , podFilesRootDirName ) ;
10341031 if ( this . $fs . exists ( podFolder ) . wait ( ) ) {
1035- this . mergeXcconfigFiles ( path . join ( this . platformData . projectRoot , podFilesRootDirName , `Pods-${ this . $projectData . projectName } .debug.xcconfig` ) , this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1036- this . mergeXcconfigFiles ( path . join ( this . platformData . projectRoot , podFilesRootDirName , `Pods-${ this . $projectData . projectName } .release.xcconfig` ) , this . pluginsReleaseXcconfigFilePath ) . wait ( ) ;
1032+ if ( this . $options . release ) {
1033+ this . mergeXcconfigFiles ( path . join ( this . platformData . projectRoot , podFilesRootDirName , `Pods-${ this . $projectData . projectName } .release.xcconfig` ) , this . pluginsReleaseXcconfigFilePath ) . wait ( ) ;
1034+ } else {
1035+ this . mergeXcconfigFiles ( path . join ( this . platformData . projectRoot , podFilesRootDirName , `Pods-${ this . $projectData . projectName } .debug.xcconfig` ) , this . pluginsDebugXcconfigFilePath ) . wait ( ) ;
1036+ }
10371037 }
10381038 } ) . future < void > ( ) ( ) ;
10391039 }
0 commit comments