Calling method on category included from iPhone static library causes NSInvalidArgumentException

前端 未结 9 739
粉色の甜心
粉色の甜心 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:08

    The only solution that worked was to include:

    "-all_load"

    in other linker flags.

    EDIT: Be sure to add this flag to the project including the static library, not to the static library itself.

    I know this isn't the correct method, but it is working for now.

    It maybe a OS 3.0 issue since this was the work around for Three20 as well.

提交回复
热议问题