Skip to content

Commit a70320f

Browse files
committed
Helper PBX
1 parent bd81480 commit a70320f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/pbxProject.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,6 +1282,19 @@ function unquote(str) {
12821282
if (str) return str.replace(/^"(.*)"$/, "$1");
12831283
}
12841284

1285+
1286+
function buildPhaseNameForIsa (isa) {
1287+
1288+
BUILDPHASENAME_BY_ISA = {
1289+
PBXCopyFilesBuildPhase: 'Copy Files',
1290+
PBXResourcesBuildPhase: 'Resources',
1291+
PBXSourcesBuildPhase: 'Sources',
1292+
PBXFrameworksBuildPhase: 'Frameworks'
1293+
}
1294+
1295+
return BUILDPHASENAME_BY_ISA[isa]
1296+
}
1297+
12851298
function producttypeForTargettype (targetType) {
12861299

12871300
PRODUCTTYPE_BY_TARGETTYPE = {

0 commit comments

Comments
 (0)