Xcode Unit Testing with Cocoapods

前端 未结 14 1092
有刺的猬
有刺的猬 2020-12-07 11:52

I\'ve been banging my head against a wall with this for the last few days but despite multiple Google/SO/Github searches I can\'t find a resolution to the issues I\'m having

相关标签:
14条回答
  • 2020-12-07 12:16

    Add "${PODS_ROOT}/Firebase/Core/Sources" to your Tests target only under Build Settings -> Header Search Paths

    0 讨论(0)
  • 2020-12-07 12:19

    As @Will mentioned an issue around Header Search Paths after CocoaPods installation.

    I have a project with multiple targets where pod 'Firebase' embedded into separate module, lets say MyProject-Shared. Firebase pod at 'Podfile' installed only for 'MyProject-Shared' target. Other modules, which wants to use 'MyProject-Shared' can't be compiled due an error:

    'missing required module "Firebase" '

    The trick in my case was to add following missing header search path at each target's Build Settings referencing to Analytics-Framework:

    "${PODS_ROOT}/Firebase/CoreOnly/Sources"

    Please see pic below:

    Hope it will save your time.

    0 讨论(0)
提交回复
热议问题