默认在static library中使用category的时候,会出现没有“selector not recognized”的错误信息。
点击Target-》BuildSettings,将Other Linker Flags 设置为-ObjC就可以了
下面是stackoverflow和apple官方给出的解释
http://stackoverflow.com/questions/2567498/objective-c-categories-in-static-library
https://developer.apple.com/library/mac/#qa/qa2006/qa1490.html