Can't import main swift classes into test target?

后端 未结 4 1004
半阙折子戏
半阙折子戏 2020-12-28 17:47

I am trying to test the classes in my iOS app. I am trying to import the target Pickle in my app that has all my classes into my testing target PickleTest

4条回答
  •  無奈伤痛
    2020-12-28 18:05

    You don't have to do this. You can use link_with in your Podfile. In your case you would do.

    link_with 'Pickle', 'PickleTests'
    

    And then pod update

提交回复
热议问题