We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f056c2 commit 8a56d12Copy full SHA for 8a56d12
1 file changed
lib/pbxProject.js
@@ -126,7 +126,7 @@ pbxProject.prototype.addResourceFile = function (path, opt) {
126
127
file.uuid = this.generateUuid();
128
129
- this.removeFromPbxBuildFileSection(file); // PBXBuildFile
+ this.addToPbxBuildFileSection(file); // PBXBuildFile
130
this.addToPbxResourcesBuildPhase(file); // PBXResourcesBuildPhase
131
132
return file;
@@ -190,7 +190,7 @@ pbxProject.prototype.removeFromPbxFileReferenceSection = function (file) {
190
for(i in this.pbxFileReferenceSection()) {
191
if(this.pbxFileReferenceSection()[i].name == refObj.name &&
192
this.pbxFileReferenceSection()[i].path == refObj.path) {
193
- file.fileRef = i;
+ file.fileRef = file.uuid = i;
194
delete this.pbxFileReferenceSection()[i];
195
break;
196
}
0 commit comments