File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,18 @@ 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( _ path: AbsolutePath ) -> Bool {
182
+ return path. basename. hasPrefix ( " . " )
183
+ || project. mainGroup. subitems. contains { $0. path == path. basename }
184
+ }
185
+ for content in try fileSystem. getDirectoryContents ( sourceRootDir) {
186
+ let absolutePath = AbsolutePath ( content, relativeTo: sourceRootDir)
187
+ if fileSystem. isFile ( absolutePath) && !shouldIgnore( absolutePath) {
188
+ project. mainGroup. addFileReference ( path: content)
189
+ }
190
+ }
179
191
180
192
// Add a group for the overriding .xcconfig file, if we have one.
181
193
let xcconfigOverridesFileRef : Xcode . FileReference ?
You can’t perform that action at this time.
0 commit comments