Skip to content

Instantly share code, notes, and snippets.

@speaktoalvin
Last active February 18, 2017 15:40
Show Gist options
  • Save speaktoalvin/b382965df76d123bd1dd13cee980fb44 to your computer and use it in GitHub Desktop.
Save speaktoalvin/b382965df76d123bd1dd13cee980fb44 to your computer and use it in GitHub Desktop.
Creating a framework with Realm as a dependency
use_frameworks!
def shared_pods
pod 'MyFramework', :git => 'https://github.com/aaalveee/MyFramework.git'
end
target 'DummyProject' do
platform :ios, '10.2'
shared_pods
end
target 'DummyProject Extension' do
platform :watchos, '3.1'
shared_pods
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment