diff --git a/lib/pbxProject.js b/lib/pbxProject.js index 2cd6619..c7ac423 100644 --- a/lib/pbxProject.js +++ b/lib/pbxProject.js @@ -921,7 +921,6 @@ PBXProject.prototype.addTargetDependency = function (target, dependencyTargets) * @returns {AddBuildPhaseResults} object containing the build phase & uuid */ PBXProject.prototype.addBuildPhase = function (filePathsArray, buildPhaseType, comment, target, optionsOrFolderType, subfolderPath) { - let buildPhaseSection; const fileReferenceSection = this.pbxFileReferenceSection(); const buildFileSection = this.pbxBuildFileSection(); const buildPhaseUuid = this.generateUuid(); @@ -1013,11 +1012,6 @@ PBXProject.prototype.addBuildPhase = function (filePathsArray, buildPhaseType, c buildPhase.files.push(pbxBuildPhaseObj(file)); } - if (buildPhaseSection) { - buildPhaseSection[buildPhaseUuid] = buildPhase; - buildPhaseSection[commentKey] = comment; - } - return { uuid: buildPhaseUuid, buildPhase }; };