| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1475,6 +1475,7 @@ function pbxCopyFilesBuildPhaseObj(obj, folderType, subfolderPath, phaseName){ | |||
| 1475 | 1475 | command_line_tool: 'wrapper', | |
| 1476 | 1476 | dynamic_library: 'products_directory', | |
| 1477 | 1477 | framework: 'shared_frameworks', | |
| 1478 | + frameworks: 'frameworks', | ||
| 1478 | 1479 | static_library: 'products_directory', | |
| 1479 | 1480 | unit_test_bundle: 'wrapper', | |
| 1480 | 1481 | watch_app: 'wrapper', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -104,5 +104,10 @@ exports.addBuildPhase = { | |||
| 104 | 104 | ||
| 105 | 105 | test.deepEqual(initialFileReferenceSectionItemsCount.length, afterAdditionBuildFileSectionItemsCount.length - 2); | |
| 106 | 106 | 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 | + }, | ||
| 108 | 113 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -206,6 +206,9 @@ exports.addFramework = { | |||
| 206 | 206 | var newFile = proj.addFramework('/path/to/SomeEmbeddableCustom.framework', {customFramework: true, embed: true}), | |
| 207 | 207 | frameworks = proj.pbxEmbedFrameworksBuildPhaseObj(); | |
| 208 | 208 | ||
| 209 | + var buildPhaseInPbx = proj.pbxEmbedFrameworksBuildPhaseObj(); | ||
| 210 | + test.equal(buildPhaseInPbx.dstSubfolderSpec, 10); | ||
| 211 | + | ||
| 209 | 212 | test.equal(frameworks.files.length, 1); | |
| 210 | 213 | test.done(); | |
| 211 | 214 | }, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments