Skip to content

Commit 0232483

Browse files
author
Anis Kadri
committed
Merge branch 'patch-1' of https://github.com/aabluedragon/node-xcode into aabluedragon-patch-1
2 parents 8b131cf + c835f55 commit 0232483

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

lib/pbxProject.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,6 +1475,7 @@ function pbxCopyFilesBuildPhaseObj(obj, folderType, subfolderPath, phaseName){
14751475
command_line_tool: 'wrapper',
14761476
dynamic_library: 'products_directory',
14771477
framework: 'shared_frameworks',
1478+
frameworks: 'frameworks',
14781479
static_library: 'products_directory',
14791480
unit_test_bundle: 'wrapper',
14801481
watch_app: 'wrapper',

test/addBuildPhase.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,10 @@ exports.addBuildPhase = {
104104

105105
test.deepEqual(initialFileReferenceSectionItemsCount.length, afterAdditionBuildFileSectionItemsCount.length - 2);
106106
test.done();
107-
}
107+
},
108+
'should set target to Frameworks given \'frameworks\' as target': function (test) {
109+
var buildPhase = proj.addBuildPhase(['file.m'], 'PBXCopyFilesBuildPhase', 'Copy Files', proj.getFirstTarget().uuid, 'frameworks').buildPhase;
110+
test.equal(buildPhase.dstSubfolderSpec, 10);
111+
test.done();
112+
},
108113
}

test/addFramework.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ exports.addFramework = {
206206
var newFile = proj.addFramework('/path/to/SomeEmbeddableCustom.framework', {customFramework: true, embed: true}),
207207
frameworks = proj.pbxEmbedFrameworksBuildPhaseObj();
208208

209+
var buildPhaseInPbx = proj.pbxEmbedFrameworksBuildPhaseObj();
210+
test.equal(buildPhaseInPbx.dstSubfolderSpec, 10);
211+
209212
test.equal(frameworks.files.length, 1);
210213
test.done();
211214
},

0 commit comments

Comments
 (0)