Skip to content

Swift Package Manager 5.1.0 missing SwiftGRPC on Import #721

@trujamal

Description

@trujamal

New Issue Checklist

Issue Description

Starting with an Swift UI application in Xcode

  1. Single View App
  2. Enter Required Info
  3. Unchecked Include Unit Tests / Include UI Tests
  4. Went to add package dependency
  5. Used the following url https://github.com/grpc/grpc-swift
  6. Selected Branch and typed in nio
  7. Confirmed that under Package Product the only fields were GRPC | Library | Name Of Project
  8. Clicked Finish
  9. Went to SceneDelegate.swift then proceeded to type in import SwiftGRPC
  10. Resulting error of No such module SwiftGRPC
  11. Types in GRPC instead via this route and has no issues
  12. Import the .grpc and .pb.swift files as mentioned here, medium starter
  13. As a result inside of the files the following message is shown in step 10.

Unsure of how to proceed based upon the documentation in the readMe, also looking into the following Stack Overflow thread this solution did not appear to work either. Any help would be appreciated.

alt text

Thanks

Complete output when running grpc-swift, including the stack trace and command used
No such module `SwiftGRPC`

Environment

Key Value
OS Version 10.15.3
Swift Version 5.1.3
Xcode Version 11.3.1
gRPC-Swift Version 1.0.0-alpha.9
gRPC-Swift Version 1.0.0-alpha.9
protoc Version 3.11.3
protoc-gen-swift Version 1.5.0
protoc-gen-swiftgrpc Version ?.?.?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions