ReSwift/ReSwift-Thunk

Cannot import ReSwiftThunkTesting via SPM

mhamann opened this issue · 4 comments

I'm using ReSwiftThunk via SPM. In my test file, I try to import the testing helper like this:

import ReSwiftThunk
import ReSwiftThunkTesting

but when I do, Xcode shows the error No such module 'ReSwiftThunkTesting'.

This is an Xcode Project...not a pure Swift module, so not sure if that has anything to do with it.

Of course, as soon as I opened this, I discovered that the updates to the Package.swift file to include the testing library haven't been tagged as a proper version. See https://github.com/ReSwift/ReSwift-Thunk/blob/2.0.1/Package.swift

Any chance a v2.0.2 can be released to fix this?

Also, I think perhaps ReSwiftThunkTesting needs to declare a dependency on ReduxThunk?

@mhamann Thanks for reporting this! Could you test the package dependency locally and open a PR if changes need to be made? I can go ahead and create a tag when everything works 👍

Even with the master branch, There was a problem that ReSwift was not imported in the "ExpectThunk.swift"
Is there any update?