Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Swift Package Manager error. #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thorikawa
Copy link

  • Use Task.capture instead of SwiftCLI.capture to solve SiftCLI issue.
$ swift run maskrcnn download example
/Users/poly/ws/Mask-RCNN-CoreML/Sources/maskrcnn/Docker.swift:8:34: error: 'capture(_:arguments:directory:)' has been renamed to 'Task.capture'
            let _ = try SwiftCLI.capture("docker",
                                 ^~~~~~~
                                 Task.capture
SwiftCLI.capture:2:13: note: 'capture(_:arguments:directory:)' has been explicitly marked unavailable here
public func capture(_ executable: String, arguments: [String], directory: String? = nil) throws -> SwiftCLI.CaptureResult
            ^
/Users/poly/ws/Mask-RCNN-CoreML/Sources/maskrcnn/Docker.swift:48:35: error: 'capture(_:arguments:directory:)' has been renamed to 'Task.capture'
        let result = try SwiftCLI.capture("docker", arguments:allArguments)
                                  ^~~~~~~
                                  Task.capture
SwiftCLI.capture:2:13: note: 'capture(_:arguments:directory:)' has been explicitly marked unavailable here
public func capture(_ executable: String, arguments: [String], directory: String? = nil) throws -> SwiftCLI.CaptureResult
            ^
  • Update dependencies to solve manifest parse error.
$ swift run maskrcnn download example
Fetching https://github.com/jakeheis/SwiftCLI
Fetching https://github.com/Alamofire/Alamofire.git
Fetching https://github.com/apple/swift-protobuf.git
https://github.com/Alamofire/Alamofire.git @ 4.8.0: error: manifest parse error(s):
/var/folders/yl/hzrq7fjd3j96yfsqwzlmcgmm0000gr/T/TemporaryFile.2P2hUs.swift:40:29: error: cannot convert value of type 'Int' to expected element type 'SwiftVersion'
    swiftLanguageVersions: [3, 4]

Copy link

@MaddyThakker MaddyThakker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants