Add helper to add new PBXNativeTarget to the PBXNativeTarget section.
diff --git a/lib/pbxProject.js b/lib/pbxProject.js
index ab06a11..575eb3f 100644
--- a/lib/pbxProject.js
+++ b/lib/pbxProject.js
@@ -355,6 +355,13 @@
this.pbxProjectSection()[this.getFirstProject()['uuid']]['targets'].push(newTarget);
}
+pbxProject.prototype.addToPbxNativeTargetSection = function(target) {
+ var commentKey = f("%s_comment", target.uuid);
+
+ this.pbxNativeTargetSection()[target.uuid] = target.pbxNativeTarget;
+ this.pbxNativeTargetSection()[commentKey] = target.pbxNativeTarget.name;
+}
+
pbxProject.prototype.addToPbxFileReferenceSection = function(file) {
var commentKey = f("%s_comment", file.fileRef);