Created
June 2, 2015 19:57
-
-
Save benvium/ececaecbfc38725bc4e8 to your computer and use it in GitHub Desktop.
cocoapods podfile with OCMockito that works when using a test target with 'host application' enabled (now default in XCode). The secret is (a) wrap all the app pods in the `target :App do` part (b) use pod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ignore all warnings from all pods | |
| inhibit_all_warnings! | |
| target :App do | |
| pod 'NSDate+Calendar' | |
| pod 'MagicalRecord', '2.3.0' | |
| pod 'Masonry' | |
| end | |
| target :AppTests, :exclusive => true do | |
| pod 'OCMockito', '~> 1.0' | |
| end | |
| # If you get the error '!] CocoaPods did not set the base configuration of your project because your project already has a custom config set....' | |
| # | |
| # gem install cocoapods-deintegrate | |
| # pod deintegrate | |
| # pod install | |
| # | |
| # More detail at https://github.com/CocoaPods/CocoaPods/issues/2849 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment