@@ -16,11 +16,11 @@ public enum XCodeProjError: Error, CustomStringConvertible, Sendable {
1616 public var description : String {
1717 switch self {
1818 case let . notFound( path) :
19- return " The project cannot be found at \( path. string) "
19+ " The project cannot be found at \( path. string) "
2020 case let . pbxprojNotFound( path) :
21- return " The project doesn't contain a .pbxproj file at path: \( path. string) "
21+ " The project doesn't contain a .pbxproj file at path: \( path. string) "
2222 case let . xcworkspaceNotFound( path) :
23- return " The project doesn't contain a .xcworkspace at path: \( path. string) "
23+ " The project doesn't contain a .xcworkspace at path: \( path. string) "
2424 }
2525 }
2626}
@@ -36,7 +36,7 @@ public enum XCSharedDataError: Error, CustomStringConvertible {
3636 public var description : String {
3737 switch self {
3838 case let . notFound( path) :
39- return " xcshareddata not found at path \( path. string) "
39+ " xcshareddata not found at path \( path. string) "
4040 }
4141 }
4242}
@@ -52,7 +52,7 @@ public enum XCUserDataError: Error, CustomStringConvertible {
5252 public var description : String {
5353 switch self {
5454 case let . notFound( path) :
55- return " xcuserdata not found at path \( path. string) "
55+ " xcuserdata not found at path \( path. string) "
5656 }
5757 }
5858}
@@ -68,7 +68,7 @@ public enum XCWorkspaceError: Error, CustomStringConvertible {
6868 public var description : String {
6969 switch self {
7070 case let . notFound( path) :
71- return " The project cannot be found at \( path. string) "
71+ " The project cannot be found at \( path. string) "
7272 }
7373 }
7474}
@@ -84,7 +84,7 @@ public enum XCWorkspaceDataError: Error, CustomStringConvertible {
8484 public var description : String {
8585 switch self {
8686 case let . notFound( path) :
87- return " Workspace not found at \( path. string) "
87+ " Workspace not found at \( path. string) "
8888 }
8989 }
9090}
@@ -100,7 +100,7 @@ public enum XcodeprojEditingError: Error, CustomStringConvertible {
100100 public var description : String {
101101 switch self {
102102 case let . unexistingFile( path) :
103- return " The file at path \( path. string) doesn't exist "
103+ " The file at path \( path. string) doesn't exist "
104104 }
105105 }
106106}
@@ -116,7 +116,7 @@ public enum XcodeprojWritingError: Error, CustomStringConvertible {
116116 public var description : String {
117117 switch self {
118118 case let . invalidType( classType, expected) :
119- return " Invalid type for object \( classType) that expects a \( expected) "
119+ " Invalid type for object \( classType) that expects a \( expected) "
120120 }
121121 }
122122}
@@ -140,15 +140,15 @@ public enum PBXObjectError: Error, CustomStringConvertible {
140140 public var description : String {
141141 switch self {
142142 case . missingIsa:
143- return " Isa property is missing. "
143+ " Isa property is missing. "
144144 case let . unknownElement( element) :
145- return " The element \( element) is not supported. "
145+ " The element \( element) is not supported. "
146146 case . objectsReleased:
147- return " The PBXObjects instance has been released before saving. "
147+ " The PBXObjects instance has been released before saving. "
148148 case let . objectNotFound( reference) :
149- return " PBXObject with reference \" \( reference) \" not found. "
149+ " PBXObject with reference \" \( reference) \" not found. "
150150 case let . orphaned( type, reference) :
151- return " Trying to use object \( type) with reference ' \( reference) ' before being added to any project "
151+ " Trying to use object \( type) with reference ' \( reference) ' before being added to any project "
152152 }
153153 }
154154}
@@ -164,7 +164,7 @@ enum PBXProjEncoderError: Error, CustomStringConvertible {
164164 var description : String {
165165 switch self {
166166 case . emptyProjectReference:
167- return " PBXProj should contain a reference to the XcodeProj object that represents the project "
167+ " PBXProj should contain a reference to the XcodeProj object that represents the project "
168168 }
169169 }
170170}
@@ -187,23 +187,23 @@ enum PBXProjError: Error, CustomStringConvertible, Equatable {
187187 var description : String {
188188 switch self {
189189 case let . notFound( path) :
190- return " .pbxproj not found at path \( path. string) "
190+ " .pbxproj not found at path \( path. string) "
191191 case let . invalidGroupPath( sourceRoot, elementPath) :
192- return " Cannot calculate full path for file element \" \( elementPath ?? " " ) \" in source root: \" \( sourceRoot) \" "
192+ " Cannot calculate full path for file element \" \( elementPath ?? " " ) \" in source root: \" \( sourceRoot) \" "
193193 case let . targetNotFound( targetName) :
194- return " Could not find target with \( targetName) "
194+ " Could not find target with \( targetName) "
195195 case let . frameworksBuildPhaseNotFound( targetName) :
196- return " Could not find frameworks build phase for target \( targetName) "
196+ " Could not find frameworks build phase for target \( targetName) "
197197 case let . sourcesBuildPhaseNotFound( targetName) :
198- return " Could not find sources build phase for target \( targetName) "
198+ " Could not find sources build phase for target \( targetName) "
199199 case let . pathIsAbsolute( path) :
200- return " Path must be relative, but path \( path. string) is absolute "
200+ " Path must be relative, but path \( path. string) is absolute "
201201 case let . multipleLocalPackages( productName: productName) :
202- return " Found multiple top-level packages named \( productName) "
202+ " Found multiple top-level packages named \( productName) "
203203 case let . multipleRemotePackages( productName: productName) :
204- return " Can not resolve dependency \( productName) - conflicting version requirements "
204+ " Can not resolve dependency \( productName) - conflicting version requirements "
205205 case . malformed:
206- return " The .pbxproj is malformed. "
206+ " The .pbxproj is malformed. "
207207 }
208208 }
209209}
@@ -221,9 +221,9 @@ public enum XCBreakpointListError: Error, CustomStringConvertible {
221221 public var description : String {
222222 switch self {
223223 case let . notFound( path) :
224- return " Breakpoints_v2.xcbkptlist couldn't be found at path \( path. string) "
224+ " Breakpoints_v2.xcbkptlist couldn't be found at path \( path. string) "
225225 case let . missing( property) :
226- return " Property \( property) missing "
226+ " Property \( property) missing "
227227 }
228228 }
229229}
@@ -238,7 +238,7 @@ public enum XCConfigError: Error, CustomStringConvertible {
238238 public var description : String {
239239 switch self {
240240 case let . notFound( path) :
241- return " .xcconfig file not found at \( path. string) "
241+ " .xcconfig file not found at \( path. string) "
242242 }
243243 }
244244}
0 commit comments