File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,9 @@ pbxProject.prototype.addProductFile = function(targetPath, opt) {
113113
114114 file . includeInIndex = 0 ;
115115 file . fileRef = this . generateUuid ( ) ;
116+ file . target = opt ? opt . target : undefined ;
117+ file . group = opt ? opt . group : undefined ;
116118
117- this . addToPbxFileReferenceSection ( file ) ; // PBXFileReference
118119 this . addToProductsPbxGroup ( file ) ; // PBXGroup
119120
120121 return file ;
@@ -123,7 +124,6 @@ pbxProject.prototype.addProductFile = function(targetPath, opt) {
123124pbxProject . prototype . removeProductFile = function ( path , opt ) {
124125 var file = new pbxFile ( path , opt ) ;
125126
126- this . removeFromPbxFileReferenceSection ( file ) ; // PBXFileReference
127127 this . removeFromProductsPbxGroup ( file ) ; // PBXGroup
128128
129129 return file ;
You can’t perform that action at this time.
0 commit comments