Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save devmanuj/5856463 to your computer and use it in GitHub Desktop.
Save devmanuj/5856463 to your computer and use it in GitHub Desktop.
PodFile Eg, with Tests Targets configured. This will configure your test targets for pods. Logic unit tests and application test targets should be configured separately. [As pods involving UIKit should only be used in application unit tests.]
Pod file:
platform :ios, "5.0"
pod "AFIncrementalStore"
pod "Toast"
pod "BlockAlertsAnd-ActionSheets"
pod "Facebook-iOS-SDK"
pod "SVProgressHUD"
target :LogicUnitTests, :exclusive => true do
pod "AFIncrementalStore"
end
target :ApplicationUnitTests, :exclusive => true do
pod "AFIncrementalStore"
pod "Toast"
pod "BlockAlertsAnd-ActionSheets"
pod "Facebook-iOS-SDK"
pod "SVProgressHUD"
end
The following has to be set in Application Test Target
Set the value of the Bundle Loader build setting to: $(BUILT_PRODUCTS_DIR)/<app_name>.app/<app_name>
Set the value of the Test Host build setting to: $(BUNDLE_LOADER)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment