Skip to content

Instantly share code, notes, and snippets.

@radex
Created December 12, 2014 14:57
Show Gist options
  • Save radex/dc8da9d912a1086b3e46 to your computer and use it in GitHub Desktop.
Save radex/dc8da9d912a1086b3e46 to your computer and use it in GitHub Desktop.
This is how you make a Podfile for a project with multiple platforms _and_ multiple targets. Easy, right?
source 'https://github.com/CocoaPods/Specs.git'
target :iOS do
platform :ios, '7.1'
link_with 'YourAppTarget', 'WidgetExtension', 'ShareExtension'
# pods...
end
target :Mac do
platform :osx, '10.9'
link_with 'MacAppTarget', 'MacExtensions'
# pods...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment