Swiftpack.co -  erikdoe/ocmock as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Mock objects for Objective-C
.package(url: "https://github.com/erikdoe/ocmock.git", from: "v3.8.1")


OCMock is an Objective-C implementation of mock objects.

For downloads, documentation, and support please visit ocmock.org.

Build Status


Stars: 2007
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Related Packages

Release Notes

OCMock 3.8.1
25 weeks ago

If in doubt, download the .dmg file. It contains frameworks for macOS, iOS, tvOS, and watchOS development, a static library for iOS development, and the source code. The .zip file is intended for users of Carthage.

Note: There is an incompatibility with Carthage and Xcode 12.3 at the moment. I have applied the workaround mentioned in the issue at https://github.com/Carthage/Carthage/issues/3019#issuecomment-665136323. This might cause problems when using Apple Sillicon Macs for development.

Changes in this release:

  • Restored compatibility with Xcode 11. Please note: support of older versions of Xcode is not guaranteed.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API