Skip to content

Commit 8a56d12

Browse files
committed
stupid me
1 parent 8f056c2 commit 8a56d12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pbxProject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pbxProject.prototype.addResourceFile = function (path, opt) {
126126

127127
file.uuid = this.generateUuid();
128128

129-
this.removeFromPbxBuildFileSection(file); // PBXBuildFile
129+
this.addToPbxBuildFileSection(file); // PBXBuildFile
130130
this.addToPbxResourcesBuildPhase(file); // PBXResourcesBuildPhase
131131

132132
return file;
@@ -190,7 +190,7 @@ pbxProject.prototype.removeFromPbxFileReferenceSection = function (file) {
190190
for(i in this.pbxFileReferenceSection()) {
191191
if(this.pbxFileReferenceSection()[i].name == refObj.name &&
192192
this.pbxFileReferenceSection()[i].path == refObj.path) {
193-
file.fileRef = i;
193+
file.fileRef = file.uuid = i;
194194
delete this.pbxFileReferenceSection()[i];
195195
break;
196196
}

0 commit comments

Comments
 (0)