grpc/grpc-swift

Build Package grpc-swift in Xcode 15 produces warnings

mylaluna opened this issue · 5 comments

Describe the bug

grpc-swift version: 1.18

I am trying to build my iOS app to target iOS 17 in Xcode 15 beta 4.
I received a lot of warnings for just building it. Following are a list of them related to grpc-swift.

Build target protoc-gen-grpc-swift:
Duplicate -rpath '/Users/username/Library/Developer/Xcode/DerivedData/MyProject-aejxskjjdqsnskbatpjjhiktlaif/Build/Products/Debug-iphonesimulator/PackageFrameworks' ignored

Note: this warning has also been mentioned in the main project build about 30+ times. It feels to me that all the grpc related libraries are trying to add this information to rpath without checking if it is in the rpath already.

All other warnings:
image

To reproduce

Steps to reproduce the bug you've found:

  1. Open my app in Xcode 15 beta 4
  2. Chose iPhone 14 Pro and iOS 17.0 as destination.
  3. Build

Expected behaviour

No warning messages.

Lukasa commented

The duplicate rpath issue is not a grpc-swift issue: that is likely to be an xcode issue with SwiftPM. Can you please file that using FeedbackAssistant? The issues regarding shadowing generic parameters are grpc-swift warnings, however, which we can fix.

No problem.

Lukasa commented

Hrm, I'm having trouble reproducing this. Can you attach the portion of the build log containing these warnings? I'd like to get the file-and-line for them.

I cannot reproduce it myself anymore. The only error I now see under Build target protoc-gen-grpc-swift is that duplicated rpath one. Not sure what happened and what is coming in Swift 6.

The other warnings are under the swift-nio package but I guess they are beyond the scope of this issue. Thank you for the help.

The shadowing was fixed in 76ae1e4.