iosnsmutableorderedset

KCOrderedAccessorFix objc_msgSend too many arguments to function call, expected 0, have 2


In Xcode 6 KCOrderedAccessorFix is producing errors on following line:

NSMutableOrderedSet *primitive = objc_msgSend(_s, fastPrimitiveGetter)

How can I resolve it? Thanks,


Solution

  • Change each objc_msgSend method call from

    NSMutableOrderedSet *primitive = objc_msgSend(_s, fastPrimitiveGetter);
    

    to

    NSMutableOrderedSet *primitive = ((id (*)(id, SEL))objc_msgSend)(_s, fastPrimitiveGetter);
    

    It's working perfectly for me.

    Fix in my pull request: https://github.com/aqibmumtaz/KCOrderedAccessorFix