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
[SR-13692] NSCocoaErrorDomain 256 during compile #4492
Comments
Comment by Alex Taffe (JIRA) Will note that this is actually compiling correctly. The error: Error Domain=NSCocoaErrorDomain Code=256 "(null)" message looks like an error, but the exe is created correctly. |
The error is related to the invocation of |
Comment by Alex Taffe (JIRA) I installed pkg-config through chocolatey, but was still seeing warnings that pkg-config was failing to execute. My guess is that my path isn’t configured properly or something |
I believe that this is due to the Windows host not being in developer mode, and the user not being an administrator user (which is expected) and not having been given the rights to create symbolic links. Could you please verify that the issue is resolved when you enable developer mode on Windows? See https://docs.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging for more details on developer mode. |
I believe that this is just the lack of developer mode, which is being better tracked in SR-14259. |
It’s actually another problem with Swift’s (not Git’s) symlink support, which still needs further discussion. |
Addressed by apple/swift-package-manager#3490 |
Environment
Windows 10, latest swift build, VS2019
Additional Detail from JIRA
md5: 949503f9dad0affab9d5d086235d5ae3
Issue Description:
I'm attempting to link a C library (libwebsockets) against Swift on Windows. Using similar steps on macOS worked fine. My steps were to make a `SourceCache` directory at the root of the C drive, then in the x64 native command line:
To compile libwebsockets. Then I am using this example swift project:
This resolves all of the packages properly, appears to compile properly, but fails at the link stage with a cryptic error: `error: Error Domain=NSCocoaErrorDomain Code=256 "(null)"`. 256 is `NSFileReadUnknownError` which doesn't help a ton. Full output below:
The text was updated successfully, but these errors were encountered: