No such module NIO
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:
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.