If needed, It's enough to import Kiwi.h to be able to access to captureArgument:atIndex: because all the NSObject categories are already being imported (including NSObject+KiwiSpyAdditions.h):
Please note that the implementation of captureArgument:atIndex: from NSObject+KiwiSpyAdditions.h and NSObject+KiwiStubAdditions.h are exactly the same, so it won't generate any breaking changes to the external projects. They are both categories of the same NSObject.
Thanks for your help @mugx-fc. It would be great if you could describe briefly the issue being resolved by this PR and your solution, for future reference.
Problem
On compiling the framework with Xcode 11, I've got the following warnings:
The problem is that the function
captureArgument:atIndex:
is defined in bothKiwiSpyAdditions
andKiwiStubAdditions
additions:KiwiSpyAdditions
KiwiStubAdditions
Solution
This PR removes the duplicated
captureArgument:atIndex:
(both class and instance) methods fromKiwiStubAdditions
, which were added in the following commit: https://github.com/kiwi-bdd/Kiwi/commit/592b25a8f7d7cb0c67b4b685366fd482be8b8492#diff-a7e330fecdc419920d8bf144bf9fc881If needed, It's enough to import
Kiwi.h
to be able to access tocaptureArgument:atIndex:
because all theNSObject
categories are already being imported (includingNSObject+KiwiSpyAdditions.h
):Please note that the implementation of
captureArgument:atIndex:
fromNSObject+KiwiSpyAdditions.h
andNSObject+KiwiStubAdditions.h
are exactly the same, so it won't generate any breaking changes to the external projects. They are both categories of the sameNSObject
.