We fixed this issue by changing the inherit! property of the test target in our Podfile from :complete to :search_paths.
We changed this:
target 'App' do
pod 'Pod', '~> 1.0'
target 'AppTests' do
inherit! :complete
pod 'TestPod', '~>1.0'
end
end
to this:
target 'App' do
pod 'Pod', '~> 1.0'
target 'AppTests' do
inherit! :search_paths
pod 'TestPod', '~>1.0'
end
end