Skip to content

Instantly share code, notes, and snippets.

@speaktoalvin
Last active February 18, 2017 16:07
Show Gist options
  • Save speaktoalvin/6260484e6fab5baa06561f98364881d1 to your computer and use it in GitHub Desktop.
Save speaktoalvin/6260484e6fab5baa06561f98364881d1 to your computer and use it in GitHub Desktop.
Creating a framework with Realm as a dependency
Pod::Spec.new do |s|
s.name = 'MyFramework'
s.version = '0.1.0'
s.summary = 'An iOS, watchOS and tvOS framework'
s.description = <<-DESC
An iOS, watchOS and tvOS framework
DESC
s.homepage = 'https://github.com/aaalveee/MyFramework'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Alvin Varghese' => '[email protected]' }
s.source = { :git => 'https://github.com/aaalveee/MyFramework.git', :tag => s.version.to_s }
s.ios.deployment_target = '10.2'
s.watchos.deployment_target = '3.1'
s.tvos.deployment_target = '10.1'
s.source_files = 'MyFramework/Classes/**/*'
s.frameworks = 'Foundation'
s.dependency 'RealmSwift'
s.source_files = 'MyFramework/Classes/*.{swift}'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment