Calling method on category included from iPhone static library causes NSInvalidArgumentException

前端 未结 9 728
粉色の甜心
粉色の甜心 2020-12-04 10:36

I have created a static library to house some of my code like categories.

I have a category for UIViews in \"UIView-Extensions.h\" named Extensions.

In this

9条回答
  •  没有蜡笔的小新
    2020-12-04 11:18

    In the past I was able to force linkage of the category with -u .objc_category_name_UIView_Extensions, but with the 3.0 dev environment that's broken and the only option seems to be -all_load.

提交回复
热议问题