“unrecognized selector sent to class” when calling category method from a library

前端 未结 2 1340
孤城傲影
孤城傲影 2021-02-06 01:33

Problem

This question may seem a bit long, but I try to give as much information as possible, since I am really staggered by this.

I am currently working an a

2条回答
  •  误落风尘
    2021-02-06 01:50

    I suspect you have run into a known problem of categories embedded in static libraries.

    If I am right, try to compile with the linker flags -ObjC (and if that is not enough, also -all_load) and your problem should disappear.

提交回复
热议问题