pod in testing target return no such module error

272 Views Asked by At

I have the following pod file, which works fine for my normal code but as soon as I want to import a pod from the test target in one of my tests it says No such module. I have tried building for testing, building for normal, I literally tried everything that came up in my mind without luck. What am I doing wrong here?

target 'MyApp' do
  use_frameworks!

  pod 'RxSwift'

  target 'MyAppTests' do
    inherit! :search_paths
    # Pods for testing
    pod 'RxTest'
    pod 'RxBlocking'
  end
end

I use CocoaPods 1.2.1

1

There are 1 best solutions below

0
Ben Jasperson On

I found this post helpful. By making sure I had the same path values and user defined variables in both targets, I was able to get passed this error.