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

前端 未结 3 1067
你的背包
你的背包 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:14

    This look like a linker bug. Maybe the SDK got linked more than once, or -ObjC is missing/present where it should not be. Check linker flags. Try deleting all OpenTok frameworks, make sure its missing in your projects, then re-download it and install again.

    0 讨论(0)
  • 2021-01-01 14:17

    I had this error, because I literally pasted my methods' implementation to header file (*.h). It worked well however; the only symptom - warnings.

    Check whether your implementation is in correct (*.m) file.

    0 讨论(0)
  • 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'

    0 讨论(0)
提交回复
热议问题