Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 09c1b6e

Browse files
committed
Fix backward compatibilities
1 parent 7b11867 commit 09c1b6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/CreateXCFramework/ProjectGenerator.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ struct ProjectGenerator {
2323

2424
var projectPath: AbsolutePath {
2525
let dir = AbsolutePath(self.package.projectBuildDirectory.path)
26+
#if swift(>=5.7)
2627
return XcodeProject.makePath(outputDir: dir, projectName: self.package.manifest.displayName)
28+
#else
29+
return buildXcodeprojPath(outputDir: dir, projectName: self.package.manifest.displayName)
30+
#endif
2731
}
2832

2933

0 commit comments

Comments
 (0)