Skip to content

Commit

Permalink
d Add swiftpm snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
jonreid committed Nov 25, 2021
1 parent a6caabf commit 9b9a58d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,18 @@ If you need more control over when the swizzling is undone, call
How do I add OCMockito to my project?
-------------------------------------

The Examples folder shows projects using OCMockito either through CocoaPods or
through the prebuilt frameworks, for iOS and macOS development.
The [Examples](https://github.com/hamcrest/OCMockito/tree/main/Examples) folder shows projects
ready to use OCMockito via Swift Package Manager, CocoaPods, or through the prebuilt framework.

### Swift Package Manager

Include an OCMockito package in your Package.swift manifest's array of `dependencies`:

snippet: swiftpm-declare-dependencies

Then add OCMockito to the dependencies of your `.testTarget`:

snippet: swiftpm-use-dependencies

### CocoaPods

Expand Down

0 comments on commit 9b9a58d

Please sign in to comment.