Skip to content

Commit 3dd4ef2

Browse files
committed
Support adding/removing tbd files just like dylibs
Xcode 7 now uses these text-based dylib definition files instead of dylibs.
1 parent 9078f3d commit 3dd4ef2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/pbxFile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ var FILETYPE_BY_EXTENSION = {
2323
plist: 'text.plist.xml',
2424
sh: 'text.script.sh',
2525
swift: 'sourcecode.swift',
26+
tbd: 'sourcecode.text-based-dylib-definition',
2627
xcassets: 'folder.assetcatalog',
2728
xcconfig: 'text.xcconfig',
2829
xcdatamodel: 'wrapper.xcdatamodel',
@@ -33,17 +34,20 @@ var FILETYPE_BY_EXTENSION = {
3334
GROUP_BY_FILETYPE = {
3435
'archive.ar': 'Frameworks',
3536
'compiled.mach-o.dylib': 'Frameworks',
37+
'sourcecode.text-based-dylib-definition': 'Frameworks',
3638
'wrapper.framework': 'Frameworks',
3739
'sourcecode.c.h': 'Resources',
3840
'sourcecode.c.objc': 'Sources',
3941
'sourcecode.swift': 'Sources'
4042
},
4143
PATH_BY_FILETYPE = {
4244
'compiled.mach-o.dylib': 'usr/lib/',
45+
'sourcecode.text-based-dylib-definition': 'usr/lib/',
4346
'wrapper.framework': 'System/Library/Frameworks/'
4447
},
4548
SOURCETREE_BY_FILETYPE = {
4649
'compiled.mach-o.dylib': 'SDKROOT',
50+
'sourcecode.text-based-dylib-definition': 'SDKROOT',
4751
'wrapper.framework': 'SDKROOT'
4852
},
4953
ENCODING_BY_FILETYPE = {

0 commit comments

Comments
 (0)