Skip to content

Commit 0945077

Browse files
committed
Add additional file types for extensions
This adds a few Xcode file types for some extensions that were previously not included. Before this change if you had a file reference in a generated project with one of these extensions Xcode would insert it into the project file after opening it the first time.
1 parent 54da5c8 commit 0945077

File tree

1 file changed

+26
-20
lines changed

1 file changed

+26
-20
lines changed

lib/xcodeproj/constants.rb

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -81,26 +81,32 @@ module Constants
8181
# @return [Hash] The known file types corresponding to each extension.
8282
#
8383
FILE_TYPES_BY_EXTENSION = {
84-
'a' => 'archive.ar',
85-
'app' => 'wrapper.application',
86-
'bundle' => 'wrapper.plug-in',
87-
'dylib' => 'compiled.mach-o.dylib',
88-
'framework' => 'wrapper.framework',
89-
'h' => 'sourcecode.c.h',
90-
'm' => 'sourcecode.c.objc',
91-
'markdown' => 'text',
92-
'mdimporter' => 'wrapper.cfbundle',
93-
'octest' => 'wrapper.cfbundle',
94-
'pch' => 'sourcecode.c.h',
95-
'plist' => 'text.plist.xml',
96-
'sh' => 'text.script.sh',
97-
'swift' => 'sourcecode.swift',
98-
'xcassets' => 'folder.assetcatalog',
99-
'xcconfig' => 'text.xcconfig',
100-
'xcdatamodel' => 'wrapper.xcdatamodel',
101-
'xcodeproj' => 'wrapper.pb-project',
102-
'xctest' => 'wrapper.cfbundle',
103-
'xib' => 'file.xib',
84+
'a' => 'archive.ar',
85+
'apns' => 'text',
86+
'app' => 'wrapper.application',
87+
'appex' => 'wrapper.app-extension',
88+
'bundle' => 'wrapper.plug-in',
89+
'dylib' => 'compiled.mach-o.dylib',
90+
'entitlements' => 'text.plist.entitlements',
91+
'framework' => 'wrapper.framework',
92+
'h' => 'sourcecode.c.h',
93+
'm' => 'sourcecode.c.objc',
94+
'markdown' => 'text',
95+
'mdimporter' => 'wrapper.cfbundle',
96+
'octest' => 'wrapper.cfbundle',
97+
'pch' => 'sourcecode.c.h',
98+
'plist' => 'text.plist.xml',
99+
'sh' => 'text.script.sh',
100+
'sks' => 'file.sks',
101+
'storyboard' => 'file.storyboard',
102+
'strings' => 'text.plist.strings',
103+
'swift' => 'sourcecode.swift',
104+
'xcassets' => 'folder.assetcatalog',
105+
'xcconfig' => 'text.xcconfig',
106+
'xcdatamodel' => 'wrapper.xcdatamodel',
107+
'xcodeproj' => 'wrapper.pb-project',
108+
'xctest' => 'wrapper.cfbundle',
109+
'xib' => 'file.xib',
104110
}.freeze
105111

106112
# @return [Hash] The uniform type identifier of various product types.

0 commit comments

Comments
 (0)