@@ -39,7 +39,7 @@ function PBXProject (filename) {
3939util . inherits ( PBXProject , EventEmitter ) ;
4040
4141PBXProject . prototype . parse = function ( cb ) {
42- const worker = fork ( path . join ( __dirname , '/ parseJob.js' ) , [ this . filepath ] ) ;
42+ const worker = fork ( path . join ( __dirname , 'parseJob.js' ) , [ this . filepath ] ) ;
4343
4444 worker . on ( 'message' , function ( msg ) {
4545 if ( msg . name === 'SyntaxError' || msg . code ) {
@@ -1392,7 +1392,7 @@ PBXProject.prototype.addTarget = function (name, type, subfolder, bundleId) {
13921392 // Setup uuid and name of new target
13931393 const targetUuid = this . generateUuid ( ) ;
13941394 const targetType = type ;
1395- const targetSubfolder = subfolder || name ;
1395+ const targetSubfolder = ( subfolder || name ) . replace ( / \\ / g , '/' ) ;
13961396 const targetName = name . trim ( ) ;
13971397 const targetBundleId = bundleId ;
13981398
@@ -1418,7 +1418,7 @@ PBXProject.prototype.addTarget = function (name, type, subfolder, bundleId) {
14181418 isa : 'XCBuildConfiguration' ,
14191419 buildSettings : {
14201420 GCC_PREPROCESSOR_DEFINITIONS : [ '"DEBUG=1"' , '"$(inherited)"' ] ,
1421- INFOPLIST_FILE : '"' + path . join ( targetSubfolder , targetSubfolder + '-Info.plist' + '"' ) ,
1421+ INFOPLIST_FILE : '"' + path . posix . join ( targetSubfolder , targetSubfolder + '-Info.plist' + '"' ) ,
14221422 LD_RUNPATH_SEARCH_PATHS : '"$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"' ,
14231423 PRODUCT_NAME : '"' + targetName + '"' ,
14241424 SKIP_INSTALL : 'YES'
@@ -1428,7 +1428,7 @@ PBXProject.prototype.addTarget = function (name, type, subfolder, bundleId) {
14281428 name : 'Release' ,
14291429 isa : 'XCBuildConfiguration' ,
14301430 buildSettings : {
1431- INFOPLIST_FILE : '"' + path . join ( targetSubfolder , targetSubfolder + '-Info.plist' + '"' ) ,
1431+ INFOPLIST_FILE : '"' + path . posix . join ( targetSubfolder , targetSubfolder + '-Info.plist' + '"' ) ,
14321432 LD_RUNPATH_SEARCH_PATHS : '"$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"' ,
14331433 PRODUCT_NAME : '"' + targetName + '"' ,
14341434 SKIP_INSTALL : 'YES'
0 commit comments