-
Notifications
You must be signed in to change notification settings - Fork 737
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
Warning 'couldn't find pc file', coming from swift dependencies. #1059
Comments
weird! When using SPM I've generally had it grab that transient dependency without issue. What |
Thanks for the fast response. I suppose I have whatever xcode 11.3.1 installs by default? Are there some command line tools I need to update? Swift printed out the follow when I asked for the version:
|
This would be whatever you've got declared in the comment at the top of your |
Ahhh, ok - makes sense that there wouldn't be a Package.swift since Xcode is handling it for you. I would try going to |
Thanks for the suggestion. I didn't know about that menu. Unfortunately, the error is still present. |
What about a version of the SDK 0.22 or higher - I did some major renovations in 22 so that might make a couple things clearer? If it doesn't, can you please share the |
Thanks for the suggestion. I tried upping the version and the issue persisted. However, after seeing the comment on the attached thread. this morning. It dawned on me that maybe I just need to install pkg-config and it will make swift-nio-zlib-support happy. For me this was as simple as using brew to install pkg-confg: This fixed me up. Thanks for the help on figuring this out. At least someone googling around will figure out how to silence this warning. I'm going to follow up on the thread in the starscream thread to see if they have any ideas of how they could avoid this. I'm not sure there is much to do at your layer. Maybe add a note in your docs? |
Weird! Some other tooling must have installed that on my end, it's in my |
No problem at all! Have a nice week! |
Opening this ticket because this warning was difficult to trace and maybe I'll save someone else time who's hits this:
If you include Apollo-ios as a swift package you'll get the follow warning during the Resolve Swift Packages steps of Xcodes automated build process:
Resolve Package Graph 'couldn't find pc file'.
This error has little context and it's unclear where the warning is coming from. We had many swift packages so to figure this out I had to remove the packages until I figured out that the warning was coming from Apollo-ios's dependencies. Well actually it's dependencies dependencies:
Apollo depends on:
daltoniam/Starscream#719
Which depends on:
apple/swift-nio-zlib-support#3
I'm hoping we can figure out how to fix this issue at the source in swift-nio-zlib-support.
The text was updated successfully, but these errors were encountered: