Unrecognized Selector SenTestCase for Category

前端 未结 4 1791
没有蜡笔的小新
没有蜡笔的小新 2020-12-20 12:50

I created a new Cocoa Touch Static Library project with Unit Testing in XCode 4 and added a category:

// NSString+Inflections.h
@interface NSString (Inflect         


        
4条回答
  •  情话喂你
    2020-12-20 13:11

    I had the same situation when i was working in the Objective-c project. I did the following steps and it went well.

    1) Select the project and goto target.

    2) select Test target and add -ObjC like showing in the image.

    3) Now try to run the unit XCTest.

提交回复
热议问题