Skip to content

Commit

Permalink
bumping xcodeproject version
Browse files Browse the repository at this point in the history
  • Loading branch information
g-Off committed Mar 6, 2018
1 parent 44e8036 commit 13180ce
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion Sources/MooseKit/SortCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion Sources/MooseKit/SyncCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 13180ce

Please sign in to comment.