Skip to content

Commit

Permalink
In non-CocoaPod examples, add instructions to specify -ObjC
Browse files Browse the repository at this point in the history
  • Loading branch information
jonreid committed Jan 1, 2015
1 parent 60112e6 commit e6e47f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Examples/MacExample-Framework/README.md
Expand Up @@ -3,8 +3,12 @@ To set up this example, open Example.xcodeproj:
1. Drag OCMockito.framework and OCHamcrest.framework into the project, specifying:
* "Copy items into destination group's folder"
* Add to targets: ExampleTests

2. Open the Build Phases for the ExampleTests target:

2. In Build Settings, add -ObjC to "Other Linker Flags". Whether you do this at
the target level or project level doesn't matter, as long as the change is
applied to the ExampleTests target.

3. Open the Build Phases for the ExampleTests target:
* Drag OCHamcrest.framework and OCMockito.framework into the Copy Files phase
* Destination: Products Directory

Expand Down
4 changes: 4 additions & 0 deletions Examples/iOSExample-Framework/README.md
Expand Up @@ -4,4 +4,8 @@ To set up this example, open Example.xcodeproj:
* "Copy items into destination group's folder"
* Add to targets: ExampleTests

2. In Build Settings, add -ObjC to "Other Linker Flags". Whether you do this at
the target level or project level doesn't matter, as long as the change is
applied to the ExampleTests target.

Then command-U to run unit tests. Try changing one of the tests to fail.

0 comments on commit e6e47f8

Please sign in to comment.