@@ -37,10 +37,6 @@ public func generate(dstdir: AbsolutePath, projectName: String, graph: PackageGr
37
37
let srcroot = graph. rootPackage. path
38
38
39
39
// Filter out the CModule type, which we don't support.
40
- //
41
- // FIXME: Sink this lower.
42
- let modules = graph. modules. filter { $0. type != . systemModule }
43
- let externalModules = graph. externalModules. filter { $0. type != . systemModule }
44
40
45
41
let xcodeprojName = " \( projectName) .xcodeproj "
46
42
let xcodeprojPath = dstdir. appending ( RelativePath ( xcodeprojName) )
@@ -52,13 +48,13 @@ public func generate(dstdir: AbsolutePath, projectName: String, graph: PackageGr
52
48
53
49
////// the pbxproj file describes the project and its targets
54
50
try open ( xcodeprojPath. appending ( " project.pbxproj " ) ) { stream in
55
- try pbxproj ( srcroot: srcroot, projectRoot: dstdir, xcodeprojPath: xcodeprojPath, modules : modules , externalModules : externalModules , products : graph. products , directoryReferences: directoryReferences, options: options, printer: stream)
51
+ try pbxproj ( srcroot: srcroot, projectRoot: dstdir, xcodeprojPath: xcodeprojPath, graph : graph, directoryReferences: directoryReferences, options: options, printer: stream)
56
52
}
57
53
58
54
////// the scheme acts like an aggregate target for all our targets
59
55
/// it has all tests associated so CMD+U works
60
56
try open ( schemesDirectory. appending ( RelativePath ( schemeName) ) ) { stream in
61
- xcscheme ( container: xcodeprojName, modules : modules , printer: stream)
57
+ xcscheme ( container: xcodeprojName, graph : graph , printer: stream)
62
58
}
63
59
64
60
////// we generate this file to ensure our main scheme is listed
@@ -78,7 +74,7 @@ public func generate(dstdir: AbsolutePath, projectName: String, graph: PackageGr
78
74
print ( " </plist> " )
79
75
}
80
76
81
- for module in modules where module. isLibrary {
77
+ for module in graph . modules where module. isLibrary {
82
78
///// For framework targets, generate module.c99Name_Info.plist files in the
83
79
///// directory that Xcode project is generated
84
80
let name = module. infoPlistFileName
0 commit comments