Category Conflict: instance method in category from conflicts with same method from another category

前端 未结 3 1058
你的背包
你的背包 2021-01-01 13:33

There are two situations, that I am aware of, that cause the following errors:

ld: warning: instance method \'resetAudioSystem\' in category from /opentok-i         


        
3条回答
  •  孤城傲影
    2021-01-01 14:39

    I had this warnings because I accidentally imported the implementation file of a category instead of it's header file. So:

    wrong: #import 'MyClass+MyCategory.m'

    right: #import 'MyClass+MyCategory.h'

提交回复
热议问题