Skip to content

Commit 79e22d0

Browse files
committed
Fix a bug in the recent Xcode project generation changes that caused filenames containing
certain characters (such as parentheses) to produce broken Xcode project files. This should -really- not be a responsibility of the client; there should be API to write out these these plist entries with proper quoting etc. But that's a diff for another day.
1 parent 64a4183 commit 79e22d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Xcodeproj/pbxproj().swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public func pbxproj(srcroot: AbsolutePath, projectRoot: AbsolutePath, xcodeprojP
102102
for fileRef in sourceFileRefs {
103103
let path = fileRef.path.relative(to: moduleRoot)
104104
print(" \(fileRef.refId) = {")
105-
print(" name = \(fileRef.path.basename);")
105+
print(" name = '\(fileRef.path.basename)';")
106106
print(" isa = PBXFileReference;")
107107
print(" lastKnownFileType = \(module.fileType(forSource: path));")
108108
print(" path = '\(fileRef.path.relative(to: srcroot).asString)';")

0 commit comments

Comments
 (0)