Download

Stable Releases

The disk images countain source code and binaries. Usually the releases can be used on newer systems, too. For example, OCMock 3.1, built with Xcode 6.2 using the OS X 10.10 and iOS 8.2 SDKs, can also be built with Xcode 7 its newer SDKs.

Release Build SDK Deployment Target Date File
OCMock 3.4.1 macOS 10.13, iOS 11.1, tvOS 11.1 OS X 10.6, iOS 8.0, tvOS 9.0 04-Nov-2017 ocmock-3.4.1.dmg
Recent changes:
  • Added workaround for crashes when mocking NSManagedObjects. As a side effect
    it is no longer possible to verify the invocation of class methods on NSManagedObject;
    see #338 for details.
  • Fixed a memory leak with andThrow:
  • Fixed bug that prevented protocol mocks from being used with invokeWithBlock:.
more...
OCMock 3.3.1 OS X 10.11, iOS 9.2, tvOS 9.1 OS X 10.6, iOS 5, tvOS 9.0 01-Jul-2016 ocmock-3.3.1.dmg
OCMock 2.2.4 OS X 10.9, iOS 7.1 OS X 10.6, iOS 5 4-Apr-2014 ocmock-2.2.4.dmg

Source code

The source code for OCMock is available on GitHub

   https://github.com/erikdoe/ocmock

It is built and tests are run by Travis CI. The current status is shown above on the right. If this isn't showing passing, chances are the code is currently not building correctly and we're busy trying to fix it. In all other cases, a local build from source should work.

License for OCMock 3.x

Copyright (c) 2004-2017 Erik Doernenburg and contributors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

License for OCMock 1.x and 2.x

Copyright (c) 2004 - 2014 by Mulle Kybernetik. All rights reserved.

Permission to use, copy, modify and distribute this software and its documentation is hereby granted, provided that both the copyright notice and this permission notice appear in all copies of the software, derivative works or modified versions, and any portions thereof, and that both notices appear in supporting documentation, and that credit is given to Mulle Kybernetik in all documents and publicity pertaining to direct or indirect use of this code or its derivatives.

THIS IS EXPERIMENTAL SOFTWARE AND IT IS KNOWN TO HAVE BUGS, SOME OF WHICH MAY HAVE SERIOUS CONSEQUENCES. THE COPYRIGHT HOLDER ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION. THE COPYRIGHT HOLDER DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING DIRECTLY OR INDIRECTLY FROM THE USE OF THIS SOFTWARE OR OF ANY DERIVATIVE WORK.