Skip to content

Instantly share code, notes, and snippets.

@benvium
Created June 2, 2015 19:57
Show Gist options
  • Select an option

  • Save benvium/ececaecbfc38725bc4e8 to your computer and use it in GitHub Desktop.

Select an option

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
# 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