项目开发中,都会使用一些第三方的静态库,在导入这些第三方类库的时候,其开发文档都会有注明在Build Settings----->Linking------>Other Liker Fliags中添加-ObjC或-all_load或-force_load等。如果不这样做,运行就会报错从而导致闪退,报错是因为selector not recognized。
在苹果官方文档有说明
The "selector not recognized" runtime exception occurs due to an issue between the implementation of standard UNIX static libraries, the linker and the dynamic nature of Objective-C. Objective-C does n