'Missing required module 'Firebase' for Unit test

i added Unit test target to existing project, when i @testable import Product_Module_Name in test class i am getting

Missing required module 'Firebase'

i am using firebase pod in the project tried adding HEADER_SEARCH_PATHS = "${PODS_ROOT}/Firebase/CoreOnly/Sources" in Build Settings and added

target 'TestTargetName' do
  inherit! :search_paths
end

in pod file. But still getting error Missing required module 'Firebase'



Solution 1:[1]

target 'GRCReportsTests' do
  inherit! :search_paths
  pod 'Firebase/Messaging'
end

This solved my issue

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 KEERTHI j