Home > Net >  Missing required module 'Firebase' for Unit test
Missing required module 'Firebase' for Unit test

Time:05-08

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'

CodePudding user response:

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

This solved my issue

  • Related