LoginSignup
3
3

More than 5 years have passed since last update.

Podの雛形

Posted at

自分用のPodを作ったのでまとめ。

よく使う機能は、PodにしてGithubBitbucketに置いておくと便利。

tree
.
├── Classes
│   ├── XXX.m
│   ├── XXX.h
│   └── noarc
│       ├── YYY.h
│       └── YYY.m
├── Example.podspec
└── README.md
  • ARCのファイルは、Classes配下に
  • NoARCのファイルは、Classes/noarc配下に

podspecは

Example.podspec
Pod::Spec.new do |s|
  s.name                  = "Example"
  s.version               = "1.0.0"
  s.summary               = "Example"
  s.homepage              = "http://example.com/"
  s.author                = { "Takahiro Ooishi" => "hoge@example.com" }
  s.source_files          = "Classes/*.{h,m}"
  s.source                = { :git => "git@example.com:hoge/Example.git", :tag => s.version.to_s }
  s.platform              = :ios, '5.0'
  s.ios.deployment_target = '5.0'
  s.requires_arc          = true
  s.frameworks            = 'QuartzCore', 'Security', 'SystemConfiguration'

  s.subspec 'no-arc' do |sp|
    sp.source_files = "Classes/noarc/*.{h,m}"
    sp.requires_arc = false
  end
end

みたいな感じ。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3