Link error while building a unit test target

后端 未结 4 1312
礼貌的吻别
礼貌的吻别 2020-12-04 13:15

I have a XCode4 / iOS project with a regular target and unit test target. Everything works fine, except when I try to #import one of my classes in my test class and try to u

4条回答
  •  伪装坚强ぢ
    2020-12-04 13:51

    Make sure that the FRRCategory source file has been added to your Compile Sources for your unit test target.

    Xcode 4:

    Project Navigator -> "[Project Name]" -> Under Targets select your unit test target -> Build Phases -> Expand Compile Sources -> Click + at bottom of Compile sources and add the correct source file.

提交回复
热议问题