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

Improve error message "public headers ("include") directory path for <target> is invalid or not contained in the target" #7734

Open
JetForMe opened this issue Jun 30, 2024 · 0 comments

Comments

@JetForMe
Copy link

Description

You get this if you don't add C-family files inside the target’s source directory, without adding the include directory. I had misnamed my directory includes, and it took some googling to realize my mistake. Better would be to have two separate messages:

  1. "Target missing required public header directory ("include")".
  2. "Target public header directory ("include") is invalid" (ideally with a link to the docs explaining what a valid directory looks like).

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version && uname -a)

swift-driver version: 1.110 Apple Swift version 6.0 (swiftlang-6.0.0.4.52 clang-1600.0.21.1.3)
Target: arm64-apple-macosx14.0
Darwin eclipsem1.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant