File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,14 @@ function defaultEncoding(fileRef) {
9494}
9595
9696function detectGroup ( fileRef ) {
97- var filetype = fileRef . lastKnownFileType || fileRef . explicitFileType ,
97+ var extension = path . extname ( this . basename ) . substring ( 1 ) ,
98+ filetype = fileRef . lastKnownFileType || fileRef . explicitFileType ,
9899 groupName = GROUP_BY_FILETYPE [ unquoted ( filetype ) ] ;
99100
101+ if ( extension === 'xcdatamodeld' ) {
102+ return 'Sources' ;
103+ }
104+
100105 if ( ! groupName ) {
101106 return DEFAULT_GROUP ;
102107 }
Original file line number Diff line number Diff line change @@ -805,6 +805,14 @@ pbxProject.prototype.pbxNativeTargetSection = function() {
805805 return this . hash . project . objects [ 'PBXNativeTarget' ] ;
806806}
807807
808+ pbxProject . prototype . pbxVersionGroupSection = function ( ) {
809+ if ( typeof this . hash . project . objects [ 'XCVersionGroup' ] !== 'object' ) {
810+ this . hash . project . objects [ 'XCVersionGroup' ] = { } ;
811+ }
812+
813+ return this . hash . project . objects [ 'XCVersionGroup' ] ;
814+ }
815+
808816pbxProject . prototype . pbxXCConfigurationList = function ( ) {
809817 return this . hash . project . objects [ 'XCConfigurationList' ] ;
810818}
You can’t perform that action at this time.
0 commit comments