addProductFile: Remove creation of fileReference & buildFile entries - only add file to "Products" group
diff --git a/lib/pbxProject.js b/lib/pbxProject.js
index b6cb1dd..04390da 100644
--- a/lib/pbxProject.js
+++ b/lib/pbxProject.js
@@ -113,8 +113,9 @@
file.includeInIndex = 0;
file.fileRef = this.generateUuid();
+ file.target = opt ? opt.target : undefined;
+ file.group = opt ? opt.group : undefined;
- this.addToPbxFileReferenceSection(file); // PBXFileReference
this.addToProductsPbxGroup(file); // PBXGroup
return file;
@@ -123,7 +124,6 @@
pbxProject.prototype.removeProductFile = function(path, opt) {
var file = new pbxFile(path, opt);
- this.removeFromPbxFileReferenceSection(file); // PBXFileReference
this.removeFromProductsPbxGroup(file); // PBXGroup
return file;