Calling method on category included from iPhone static library causes NSInvalidArgumentException

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

    I just spoke to an Apple engineer about this, and this has been addressed in ld with versions >100. This is included in XCode4. He walked me through this and I tried it myself and indeed the category problem is fixed.

    Take out "-all_load" and go back to "-ObjC" in your Build Settings with the new linker.

提交回复
热议问题