Skip to content

0.9.1 Carthage project does not build successfully on Xcode 12 #1051

@banjun

Description

@banjun

I have a workaround for this error below. I would like to send a PR on top of 0.9.1 if there's a target branch just on it (such as maintenance/0.9.x).

Describe the bug

On Xcode 12, SwiftGRPC-Carthage.xcodeproj of grpc-swift 0.9.1 does not build successfully.

To reproduce

Xcode: Xcode 12 (Xcode 12.2)

Steps to reproduce the bug you've found:

  1. git checkout 0.9.1
  2. rm -rf .build # make sure there are no intermediates
  3. open SwiftGRPC-Carthage.xcodeproj
  4. Build SwiftGRPC-Package

Expected behaviour

the build succeeds

Actual behaviour:

error: Build input files cannot be found: '/Users/user/project/github/grpc-swift/.build/checkouts/swift-protobuf.git-2635211014727342512/Sources/SwiftProtobuf/JSONDecodingOptions.swift', ...

Additional information

The error is caused indirectly by swift package resolve in the build pre-action of SwiftGRPC-Carthage.xcodeproj. An available workaround is here:

I really want to stick with 0.9.1 for the time being before migrating to 1.0.0 to save some time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugFeature doesn't work as expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions