Issue testing and using Cocoapods in a Swift project

后端 未结 3 1008
陌清茗
陌清茗 2020-12-28 13:15

I\'m writing an app in Swift, using XCode 6 Beta-6. I\'m using Cocoapods and I\'m creating some unit tests.

The issue is this one: apparently is not possible to hav

3条回答
  •  心在旅途
    2020-12-28 13:55

    In addition to the link_with command in my Podfile i had to import my main project module in the test file. This way classes and methods don't have to public.

    Note the special @testable annotation

    @testable import my_tutorial_app

    Also my main project name had non-alphanumerical characters in it, I had to replace them with underscores _

提交回复
热议问题