OCMock does not mock class included via Cocoapods
<p>I'm using OCMock to mock DataFetcher class:</p>

<pre><code>id dataFetcherMock = OCMClassMock([DataFetcher class]);
OCMStub([dataFetcherMock fetchSetupForCompany:[OCMArg any]
                                   completion:[OCMArg any]]).andCall(self, @selector(fetchSetupForCompany:completion:));
</code></pre>

<p>It was working fine when DataFetcher was a part of the project. But then we moved DataFetcher to a private Cocoapods. And the mocking stopped working. Method defined in andCall just never called anymore.</p>

<p>Can OCMock be used to mock classes added via cocoapods? How can I make it work?</p>