“No such module” when using @testable in Xcode Unit tests

后端 未结 30 1375
春和景丽
春和景丽 2020-12-02 05:33

I recently updated to Xcode 7 beta 5. I tried adding a unit test to an earlier project, but I am getting the error message \"No such module [myModuleName]\" on the @te

30条回答
  •  北海茫月
    2020-12-02 05:50

    CocoaPods recommends adding inherit! :search_paths to your test target like so:

    target 'App' do
      target 'AppTests' do
        inherit! :search_paths
      end
    end
    

    Source: https://github.com/CocoaPods/CocoaPods/pull/8423#issue-244992565

提交回复
热议问题