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

Xcode 11 + SPM: "No such module 'RxSwift'" #2063

Closed
RamblinWreck77 opened this issue Sep 13, 2019 · 6 comments
Closed

Xcode 11 + SPM: "No such module 'RxSwift'" #2063

RamblinWreck77 opened this issue Sep 13, 2019 · 6 comments

Comments

@RamblinWreck77
Copy link

Steps to reproduce:

-Make new project w/view controller

-Add https://github.com/ReactiveX/RxSwift/ via File/Swift Packages/Add Package Dependency

-add import RxSwift to view controller

-Build will fail with "no such module"

Things I've tried:

✅ Clean build/nuke derived data

✅ RxSwift is included in Frameworks, Libraries, and Embedded Content for the specified target

I could just be a moron and be missing something obvious, but I thought I'd share here in case anyone else runs into this issue!

@RamblinWreck77
Copy link
Author

Relevant thread seemingly having similar issues:

https://forums.developer.apple.com/thread/119327

@RamblinWreck77
Copy link
Author

Oh wow, it appears SwiftPM has hard coded "Release/Debug" configuration names?! What?!

https://stackoverflow.com/questions/57165778/getting-no-such-module-error-when-importing-a-swift-package-manager-dependency

@freak4pc
Copy link
Member

I just created a blank project and had no issues.

image

image

image

@freak4pc
Copy link
Member

@RamblinWreck77 If this is specific to SPM / Your project - we should probably close this. Let me know :)

@RamblinWreck77
Copy link
Author

I'll go ahead and close this, the cause was having a build configuration that was custom, and not Debug/Release.

Hopefully this post helps anyone else who has this problem.

@DenTelezhkin
Copy link
Contributor

/shrug https://bugs.swift.org/browse/SR-11328

Sent with GitHawk

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

3 participants