I have installed two libraries called Nimble and Quick and I want to use them in my UITests.
Here how my Podfile:
........//more pods
use_frameworks!
target 'TrackunitGoUITests' do
inherit! :search_paths
pod 'Quick'
pod 'Nimble'
end
The app should build without problems.
It builds successfully but it shows No such a module Quick and No such module Nimble error while opening my UITesting file that imports the two libraries.
Also when I look under Pods->Products folder I see that the two libraries are in _red_.
I tried Cleaning the project, Deleting the Derived Data and Cleaning the build folder. None of them helped.
@kristiyandobrev can you provide a sample project please?
I have the same problem. All libraries imported only to Test target as marked as swift compiler error "no such module xxx"
what interesting, everything works as expected. project build, use libraries and test properly, but this error red exclamation mark visible on top is annoying. tested with rxtest and fbsnapshottests
I'm having the same issue with RxTest,
It can actually run the test but it doesn't have autocomplete with RxTest syntax. (will have a red mark with No such module 'RxTest')
The hard thing is that I can't reproduce this error if I opened a new project with almost the same Podfile.
Alright. I have found a workaround. I have selected Manage Schemes, then selected Pods-MyFancyAppUITests scheme and then I Build that scheme. The error was gone and the autocomplete was working after that somehow... . @jhihguan and @adamsmaka can you confirm if that works for you ? 馃槇
@kristiyandobrev this is awesome!! this does works for me. it took me 2 days try to change my Podfile with nothing.
I guess it does build the framework when testing but somehow it doesn't really exists in deriveddata folder?so my RxTest.framework is still red(not exist) in Pods/Products folder, others are black
@kristiyandobrev i think it works! we will see if error will not appear again in different situations but for now he's gone ! thank you man :D it was so annoying hehe
But this is still just a workaround and no solution I won't be able to do that on my CI system..
@dnkoutso I created a sample project and used the Firebase/Crash dependency as instructed in their docs.
If you clone or download the project, just run bundle exec pod install and run the tests to get the _Missing required module 'Firebase'_ error.
@ffittschen if you add Pods-YourAppUITests scheme to the project, can't you build it on the CI before running the tests ?
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem :+1:
Xcode 10, iPhone 8 iOS 12 simulator used for UITests [project was created with Xcode 10]
What fixed it for me is:
1) setting the inheritance in the podfile for UITests to "complete" instead of "search paths"
2) setting the "Always Embed Swift Standard Libraries" flag in the pods project to "YES"
Most helpful comment
Alright. I have found a workaround. I have selected
Manage Schemes, then selectedPods-MyFancyAppUITestsscheme and then IBuildthat scheme. The error was gone and the autocomplete was working after that somehow... . @jhihguan and @adamsmaka can you confirm if that works for you ? 馃槇