File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,16 @@ func xcodeProject(
176
176
// of its manifest file.
177
177
let manifestFileRef = project. mainGroup. addFileReference ( path: " Package.swift " , fileType: " sourcecode.swift " )
178
178
createPackageDescriptionTarget ( for: graph. rootPackages [ 0 ] , manifestFileRef: manifestFileRef)
179
+
180
+ // Add root level files to the project
181
+ func shouldIgnore( _ fileName: String ) -> Bool {
182
+ return fileName. hasPrefix ( " . " ) || [ " Package.swift " ] . contains ( fileName)
183
+ }
184
+ for content in try fileSystem. getDirectoryContents ( sourceRootDir) {
185
+ if fileSystem. isFile ( AbsolutePath ( content, relativeTo: sourceRootDir) ) && !shouldIgnore( content) {
186
+ project. mainGroup. addFileReference ( path: content)
187
+ }
188
+ }
179
189
180
190
// Add a group for the overriding .xcconfig file, if we have one.
181
191
let xcconfigOverridesFileRef : Xcode . FileReference ?
You can’t perform that action at this time.
0 commit comments