diff --git a/Package.resolved b/Package.resolved index 1cce43c..7d3bbf0 100644 --- a/Package.resolved +++ b/Package.resolved @@ -15,8 +15,8 @@ "repositoryURL": "https://github.com/g-Off/XcodeProject.git", "state": { "branch": null, - "revision": "a20ed24085101c3b9e230e57c4c424dbe8dcc727", - "version": "0.2.0" + "revision": "e46eb5645b0e9e762ce7b14ea4bdc9477b991342", + "version": "0.3.0" } } ] diff --git a/Package.swift b/Package.swift index d08e77b..1947eeb 100644 --- a/Package.swift +++ b/Package.swift @@ -16,7 +16,7 @@ let package = Package( dependencies: [ .package( url: "https://github.com/g-Off/XcodeProject.git", - from: "0.2.0" + from: "0.3.0" ), .package( url: "https://github.com/apple/swift-package-manager.git", diff --git a/Sources/MooseKit/SortCommand.swift b/Sources/MooseKit/SortCommand.swift index 3983253..b5d476e 100644 --- a/Sources/MooseKit/SortCommand.swift +++ b/Sources/MooseKit/SortCommand.swift @@ -80,7 +80,10 @@ final class SortCommand: Command { throw Bullwinkle.Error.invalidProject(path: nil) } let xcodeproj = try projectURL(from: arguments) - guard let projectFile = try ProjectFile(url: xcodeproj) else { + let projectFile: ProjectFile + do { + projectFile = try ProjectFile(url: xcodeproj) + } catch { throw Bullwinkle.Error.invalidProject(path: xcodeproj.path) } return projectFile diff --git a/Sources/MooseKit/SyncCommand.swift b/Sources/MooseKit/SyncCommand.swift index 8688531..79f51ad 100644 --- a/Sources/MooseKit/SyncCommand.swift +++ b/Sources/MooseKit/SyncCommand.swift @@ -40,7 +40,10 @@ class SyncCommand: Command { var arguments = SyncArguments() binder.fill(parsedArguments, into: &arguments) - guard let projectFile = try ProjectFile(url: arguments.xcodeproj) else { + let projectFile: ProjectFile + do { + projectFile = try ProjectFile(url: arguments.xcodeproj) + } catch { throw Bullwinkle.Error.invalidProject(path: arguments.xcodeproj.path) } let group = try projectFile.group(forPath: arguments.group)