-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 'RxTest' with Swift Package Manager #1215
Comments
Hi @devxoul , I've pushed a fix for this. |
@kzaher, Thanks for quick fix 💯 |
Hi @devxoul , I'm retesting this and I'm having issues when I run SPM outside of unit tests.
It looks like we might need to pull this out again. |
@kzaher, I used it on RxExpect and there was no problem. I just tried with another project but the result was same. $ mkdir MyApp
$ cd MyApp
$ swift package init --type executable
$ vim Package.swift let package = Package(
name: "MyApp",
dependencies: [
// Use temporary release from my fork
.Package(url: "https://github.com/devxoul/RxSwift.git", majorVersion: 3),
]
) $ swift build
Fetching https://github.com/devxoul/RxSwift.git
Cloning https://github.com/devxoul/RxSwift.git
Resolving https://github.com/devxoul/RxSwift.git at 3.4.1
Compile Swift Module 'RxSwift' (157 sources)
Compile RxCocoaRuntime _RXObjCRuntime.m
Compile RxCocoaRuntime _RXKVOObserver.m
Compile RxCocoaRuntime _RXDelegateProxy.m
Compile RxCocoaRuntime _RX.m
Compile Swift Module 'RxTest' (13 sources)
Compile Swift Module 'RxBlocking' (8 sources)
Linking RxCocoaRuntime
Compile Swift Module 'RxCocoa' (93 sources)
Compile Swift Module 'MyApp' (1 sources)
Linking ./.build/debug/MyApp How can I reproduce that? |
Hi @devxoul , I've added an environmental variable RxTest will be included if you run I'm hoping SPM will provide us some built in way to distinguish this. ¯\_(ツ)_/¯ |
@kzaher Cool! It works like a charm :) |
I had this issue that indicates |
Short description of the issue:
I'd like to install RxTest framework via Swift Package Manager.
Expected outcome:
// MyAppTests.swift import RxTest // expected this line to not make a compile error
What actually happens:
// MyTest.swift import RxTest // No such module 'RxTest'
Self contained code example that reproduces the issue:
RxSwift/RxCocoa/RxBlocking/RxTest version/commit
Latest (3.4.0)
Platform/Environment
How easy is to reproduce? (chances of successful reproduce after running the self contained code)
Xcode version:
Installation method:
I have multiple versions of Xcode installed:
(so we can know if this is a potential cause of your issue)
Level of RxSwift knowledge:
(this is so we can understand your level of knowledge
and formulate the response in an appropriate manner)
The text was updated successfully, but these errors were encountered: