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

How to fix SPM warning: couldn't find pc file for playerctl #13

Open
tisfeng opened this issue Nov 27, 2024 · 2 comments
Open

How to fix SPM warning: couldn't find pc file for playerctl #13

tisfeng opened this issue Nov 27, 2024 · 2 comments

Comments

@tisfeng
Copy link

tisfeng commented Nov 27, 2024

x-xcode-log://D6C0A0BE-5B11-4337-B513-9A231AEC3C64 couldn't find pc file for playerctl

image
@ddddxxx
Copy link
Owner

ddddxxx commented Nov 27, 2024

I believe it's a bug in Xcode. playerctl is only used on linux.

dependencies: [
    ...
    .target(name: "playerctl", condition: .when(platforms: [.linux])),

When I edit the conditions above (or just ⌘S without changing anything), the warning appears and disappears randomly.

@tisfeng
Copy link
Author

tisfeng commented Nov 30, 2024

Thank you for your reply.

I also suspect it is a bug in Xcode. I have tried various methods but cannot fix this warning.

The difference is that on my computer, this warning has always existed unless I comment out the line of code above.

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

No branches or pull requests

2 participants