Xcode Unit Testing with Cocoapods

前端 未结 14 1167
有刺的猬
有刺的猬 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:04

    Adding ${SRCROOT}/Pods/Firebase/CoreOnly/Sources into the unit test target's "Header search paths" fixed the problem. Steps:

    1. Select your unit tests target
    2. Go to Build Settings
    3. Search for header search path
    4. Add ${SRCROOT}/Pods/Firebase/CoreOnly/Sources

    After this the tests can run and the error will disappear.

提交回复
热议问题