File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -508,6 +508,17 @@ pbxProject.prototype.removeFromPbxBuildFileSection = function(file) {
508
508
}
509
509
}
510
510
511
+ pbxProject . prototype . removeFromPbxBuildFileSectionByFileRef = function ( file ) {
512
+ var fileUuid ;
513
+ var pbxBuildFileSection = this . pbxBuildFileSection ( ) ;
514
+
515
+ for ( fileUuid in pbxBuildFileSection ) {
516
+ if ( pbxBuildFileSection [ fileUuid ] . fileRef == file . uuid ) {
517
+ this . removeFromPbxBuildFileSectionByUuid ( fileUuid ) ;
518
+ }
519
+ }
520
+ }
521
+
511
522
pbxProject . prototype . removeFromPbxBuildFileSectionByUuid = function ( itemUuid ) {
512
523
var buildSection = this . pbxBuildFileSection ( ) ;
513
524
removeItemAndCommentFromSectionByUuid ( buildSection , itemUuid ) ;
@@ -701,7 +712,7 @@ pbxProject.prototype.removePbxGroupByKey = function(groupKey, path) {
701
712
file . uuid = file . fileRef ;
702
713
this . removePbxGroupByKey ( children [ i ] . value , $path . join ( path , children [ i ] . comment ) ) ;
703
714
this . removeFromPbxFileReferenceSectionByUuid ( children [ i ] . value ) ;
704
- this . removeFromPbxBuildFileSection ( file ) ;
715
+ this . removeFromPbxBuildFileSectionByFileRef ( file ) ;
705
716
this . removeFromPbxSourcesBuildPhase ( file ) ;
706
717
}
707
718
You can’t perform that action at this time.
0 commit comments