Skip to content

Commit ddd269f

Browse files
committed
Add helper to add new PBXNativeTarget to the PBXNativeTarget section.
1 parent 48cef4c commit ddd269f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/pbxProject.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,13 @@ pbxProject.prototype.addToPbxProjectSection = function(target) {
355355
this.pbxProjectSection()[this.getFirstProject()['uuid']]['targets'].push(newTarget);
356356
}
357357

358+
pbxProject.prototype.addToPbxNativeTargetSection = function(target) {
359+
var commentKey = f("%s_comment", target.uuid);
360+
361+
this.pbxNativeTargetSection()[target.uuid] = target.pbxNativeTarget;
362+
this.pbxNativeTargetSection()[commentKey] = target.pbxNativeTarget.name;
363+
}
364+
358365
pbxProject.prototype.addToPbxFileReferenceSection = function(file) {
359366
var commentKey = f("%s_comment", file.fileRef);
360367

0 commit comments

Comments
 (0)