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 macOS 10.12, iOS 10.2, tvOS 10.1 OS X 10.6, iOS 8.0, tvOS 9.0 22-Dec-2016 ocmock-3.4.dmg
Recent changes:
  • OCMock now requires iOS 8 as minimum deployment target
  • Managed objects can now be mocked
  • Notifications with a user info dictionary can be observed and verified with the macro syntax.
  • Now considering structs with unknown names to be the same type as a named struct, as long
    as either the actual definition matches or one of them is opaque.
  • Fixed bug causing verifyWithDelay to be held up by rejects
  • Fixed bug where a mock would not claim conformance to protocols declared in a superclass
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.