LoginSignup
1
1

More than 5 years have passed since last update.

[CocoaPods] Podspec ファイルの一例

Last updated at Posted at 2014-10-22

やりたいこと

  • spec.name を参照したい
  • ViewController.mなど、プロジェクトのデフォルトファイルは除外したい
  • pchファイルに書いたimportを参照したい
Example.podspec
Pod::Spec.new do |spec|
spec.name         = 'Example'
spec.source_files = "#{spec.name}/*.{h,m}"
spec.exclude_files = "#{spec.name}/AppDelegate.{h,m}", "#{spec.name}/RootViewController.{h,m}", "#{spec.name}/ViewController.{h,m}", "#{spec.name}/main.m"
spec.prefix_header_contents = '#import "CommonHeader.h"'

spec.subspec 'UIView+Sizes' do |a|
    a.source_files = "#{spec.name}/UIView+Sizes.{h,m}"
end

end
1
1
2

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
1
1