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

No such module NIO #2605

Open
ghost opened this issue Dec 5, 2023 · 1 comment
Open

No such module NIO #2605

ghost opened this issue Dec 5, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 5, 2023

Expected behavior

I build my project successfully. Project uses latest swift toolchain version.

Actual behavior

I got 'no such module NIO'

Steps to reproduce

Open .xcodeproj
Start the build

If possible, minimal yet complete reproducer code (or URL to code)

[anything to help us reproducing the issue]

SwiftNIO version/commit hash

[2.62.0]

System & version information

Please provide at the very least your operating system and Swift version
information.
Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
Xcode 15.0.1
Build version 15A507

Ideally, run

scripts/nio-diagnose -o nio-diagnose.md PID_OF_YOUR_NIO_PROGRAM

and attach (or paste) the resulting file nio-diagnose.md into this bug report
or send it to the SwiftNIO maintainers privately.

Can't provide diagnose run, since my project fails to build.
I'm posting the issue here, since I try to use SwiftNIO SSH to get and put files in a server (Raspberry pi in my case) . I add the swift-nio package using the swift package manager, but it also automatically adds
to Package Dependencies the packages: swift-atomics (1.2.0) and swift-collections
when I write import NIO or import NIOSSH (I want to use ssh for this project) I got a build error - no such module NIO / no such module NIOSSH

Here's a screenshot:

Screenshot 2023-12-05 at 15 48 38
@FranzBusch
Copy link
Contributor

This looks like a misconfigured Xcode project. Can you make sure that you follow the steps in this tutorial. The problem here most likely is that there is no dependency setup for your target to swift-nio-ssh.

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

1 participant